hlship / cascade

Simple, fast, easy web applications in idiomatic Clojure.
http://github.com/hlship/cascade
158 stars 7 forks source link

Filter HTML/XML entities in text nodes #12

Closed hlship closed 15 years ago

hlship commented 15 years ago

Text nodes that contains XML entities (<, >, &, etc.) should be filtered to expand those characters to the corresponding entities (&tl;, >, &).

Further, where possible, this conversion should occur statically (at view construction time), necessating an additional DOM node type, :raw-text.

hlship commented 15 years ago

Actually, decided to move the filtering logic to the text-node function. Add a raw function as well, that does no filtering.

hlship commented 15 years ago

Add filtering of XML and non-printable entities.

Closed by e0cb01eb751c752f5aa291c1ad1bd4a5aab41d15.