Parsing & handling of <object> and <param> tags
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 <object><param></param></object> piece, it removes the <param> tags, and incorporates these in the <object> tag. For example:
<object width="300" height="250"><param name="allowscriptaccess" value="always"></param></object>
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.
<object width="300" height="250" allowScriptAccess="always"></object>
Is there any way to prevent this conversion so it will retain the <param> tags?
Thank you in advance.