Add htmlAttr to Text.XHtml
It is necessary to allow HTML primitive characters such as "×" in string attributes, e.g.
<input type="image" src="delete.gif" alt="×" name=...>
However, passing "×" to strAttr results in an encoded string "×", which doesn't render the nice little x we need. Attached is a patch to add an htmlAttr function so we can say
input ! [strAttr "type" "image", strAttr "src" "delete.gif", htmlAttr "alt" (primHtmlChar "times")]
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries (other) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |