HI, I've got a really seriously question.
I need to send HTML code, so I have to load html into string, and this obvious doesn't work if I can't interpret them well, how can I store it natively?
Thanks for your help
Yes. Using a newer technology called web assembly, you can write c, c++, or rust code such as functions that transpiles into a speedy language that the browser can use.
HTML Parser in C/C++ HTML Parser is a program/software by which useful statements can be extracted, leaving html tags (like <h1>, <span>, <p> etc) behind. Examples: Input: <h1>Geeks for Geeks</h1> Output: Geeks for Geeks.
Strings and HTML should be fine. The only complication is escaping, which is made easier using verbatim string literals (@"..."). Then you just double any double-quotes:
string body = @"<html><body>
<a href=""foo.bar"" class=""blap"">blip</a>
...
</body></html>";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With