JimLiu
03-26-2008, 08:57 AM
Hi,
One of my website has a page that has a part is generated from user input. Users are allowed to input some simple HTML code like <b>, <i>...etc. One of the problem is that if a user input is incomplete (like <b><i>test</i>), the rest of the page (static content) will be affected (in the case be bold).
Is there anyway I can isolate all HTML / CSS styles to that section of the webpage (maybe a DIV)? Or perhaps I can reset the style and apply new style on other part of the webpage?
Any idea would be appreciated. Thanks!
One of my website has a page that has a part is generated from user input. Users are allowed to input some simple HTML code like <b>, <i>...etc. One of the problem is that if a user input is incomplete (like <b><i>test</i>), the rest of the page (static content) will be affected (in the case be bold).
Is there anyway I can isolate all HTML / CSS styles to that section of the webpage (maybe a DIV)? Or perhaps I can reset the style and apply new style on other part of the webpage?
Any idea would be appreciated. Thanks!