[Htmlparser-user] How can filter special characters (<>...) in html content
Brought to you by:
derrickoswald
From: Guohui L. <lig...@no...> - 2008-11-14 10:08:47
|
Hi, I got html content from database, it is like following: <html> <body> http://<servername>:<port>/abc.html<br>\r\n </body> <html> The content needs to be display in the webpage. But <servername> and <port> can not be display because the "<" is html key word. So I have to change it to "<". But at the same time, I do not want to change the "<" in other html key work ("<html>", "<br>" etc). In other word, I want to change the content to following: <html> <body> http://<servername>:<port>/abc.html<br><br> </body> <html> Can htmlparser do this? If yes, please tell me how to do. Notes: <servername> & <port> maybe is changed to anothers, such as <hostname>, they are not definite. Thanks! Best Regards, Nicholas Li |