Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

antareus

Parsing HTML

This topic is 5402 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need a basic HTML control. Does Windows have a very basic one? I do NOT want an embedded instance of IE - I can only imagine the horrors of exploits spreading using my app instantaneously. Therefore MFC''s CHtmlView is definitely out. Inevitably, this means I will probably have to take a RichEdit box and convert the HTML to rich edit styles. What would the best way to parse HTML be? Should I learn something like boost::spirit? I shudder at doing this as a parsing newbie (I really should take that compilers class before I leave college).

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by antareus
I do NOT want an embedded instance of IE - I can only imagine the horrors of exploits spreading using my app instantaneously. Therefore MFC''s CHtmlView is definitely out.


I''m confused. If you''re running an unpatched IE, wouldn''t you say you have problems regardless of whether or not your app use CHTMLView.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
quote:
Original post by antareus
Very true.

CHTMLView is overkill for a messaging chat window though.
Not really. Actually, IIRC, there''s a couple of messaging clients out there already that use it. When you think about it, it''s more or less ideal for the task. CRichEdit is another possibility, but it''s slightly more limited, and from personal experience I can say that converting HTML to other stuff royally sucks. It''s a pain in the ass to deal with all the syntax incompatibilities people expect to get away with. Of course, if you''re only going to be parsing HTML produced by a specific application, it might be a bit easier.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!