Skip to main content

Parsing & handling of and tags

No replies
Joined: 2009-12-28

Hi all,

I'm working on allowing people to paste certain embedded video code into a wysiwyg / html editor we've built with the help of (amongst others) javax.swing.text.html.HTMLWriter.

I'm facing the following problem here:

When i try to parse the piece, it removes the tags, and incorporates these in the tag. For example:


All param tags get converted into the object tag as String attributes. Problem with this is that the allowScriptAccess attribute is not a valid attribute of the object tag.

Is there any way to prevent this conversion so it will retain the tags?

Thank you in advance.