[Htmlparser-user] html code parsing
Brought to you by:
derrickoswald
From: Guilherme Z. <gz...@sa...> - 2003-03-14 20:40:22
|
Anyone using htmlparser to parse ", <, > from user input to ", < and > ? I have the following scenario: my database has texts with these chars (",< and >) and I have to put them from database to a <textarea> in the html. Is there any taglib or other solution to I filter this database information, to show in a html form field? Thanks in advance, Guilherme Zambon Example of code that I need to threat: <textarea><%= rs.getString("databasetext") %></textarea> it generates something like <textarea>a text with < won't work in a html</textarea> and I want something like <textarea><sometag:encode string="<%= rs.getString("databasetext")" /></textarea> -- SAPO ADSL.PT, apanhe já o comboio da Banda Larga. Kit SAPO ADSL.PT 50 hTTP://www.sapo.pt/kitadsl |