c# - html entity encode text only, not html tag -


I have a string in which there is a bunch of html. I want to convert the html tag to encode within the HTML tag but the tags themselves There is an easy way to do this in ASPN C # 3.5

You can use HTMl agility pack If you ask them to read HTML then you need to use HtmlEncode method to encode specific values.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -