troubleshooting Question

Tag scope

Avatar of deniz_yousun
deniz_yousun asked on
4 Comments3 Solutions201 ViewsLast Modified:

I have a web site similar to experts-exchange in which typically users enter text and these text is displayed to other users.
The user also may enter html tags. Since the user may enter wrong html tags (such as a table opening <table> which is
not closed) it may confuse the web page in which it is displayed. So typically I replace special html characters with their HTML (such as < with &lt;) equivalents so that the browser does not interpret them.

But it would be a nice feature if the user could enter tags so that the user can make some text formatting.
So I wonder if it is possible to make something like this. The user entered html source is interpreted by the browser
only in a certain scope such that if the user entered html source contains errors, that will not effect the other parts of the document.

Thank you
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros