Helma Logo
main list history
previous version  overview  next version

Version 4 by hannes on 12. October 2005, 23:41

==== Ideas

Some separation of concerns:

# Parsing HTML for skin rendering
# Adding of missing tags
# Adding of formatting tags
# entity encoding

Potentially of interest: <http://mercury.ccil.org/~cowan/XML/tagsoup/>.

==== PlanPlan

# Keep <a href="http://adele.helma.org/source/viewcvs.cgi/helma/src/helma/util/HtmlEncoder.java?rev=1.30&cvsroot=hop&content-type=text/vnd.viewcvs-markup">current code</a> as starting point, as I can't find any other code with a similar feature mix (most importantly smart formatting) that looks like it's worth the switch.
# Separate character entity escaping from the formatting/tag closing.
# Update the list of recognized tags from the Tagsoup project.

==== Plan B

# Keep <a href="http://adele.helma.org/source/viewcvs.cgi/helma/src/helma/util/HtmlEncoder.java?rev=1.30&cvsroot=hop&content-type=text/vnd.viewcvs-markup">current code</a> for character entity escaping only.
# Use Tagsoup for cleaning up tags and -- using the knowledge from helma's old html formatter -- to generate break/paragraph tags

==== Open Issues

We should provide a feature to only allow certain tag/attribute combinations to exclude scripts or just to keep people from ruining the layout.

Skin parsing might start from this code too if we move to HTML/XML style skin tags.

     removed
     added