Bill this will depending totally on the browser how 'broken' or 'unbroken' the 
text looks. Because of that, the only solution I can think of is to actually 
"fix" the text before displaying it, or remove the HTML markup.

On Monday 03 May 2004 01:03 pm, Bill Siggelkow wrote:
> This is somewhat of an HTML question so please don't slam me ...
>
> I am using <bean:write name="foo" property="bar" filter="false"/> to
> display text containing HTML.  However, I would like to find a way to
> prevent mangled markup when the data contains unbalanced tags.  For
> example, if the value of bar is "Struts <b>rocks!" -- then when I render
> this with filter="false" then the text and everything following the text
> is in bold because the <b> tag does not have an </b> tag.  Does anyone
> know of a way of preventing this problem?  I tried wrapping the text in
> <div> tags but still had the same problem.
>
> Bill Siggelkow
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to