Ticket #1201 (closed enhancement: fixed)
Add inwardHtml/outwardHtml functions to Config object
| Reported by: | ray | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.95 |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I suppose there will be a lot of people to find this useful.
Example usage: You want your HTML to use b and i instead of strong and em
xinha_config.outwardHtml = function(html) {
html = html.replace(/<(\/?)strong(\s|>|\/)/ig, "<$1b$2");
html = html.replace(/<(\/?)em(\s|>|\/)/ig, "<$1i$2");
return html;
}
Change History
Note: See
TracTickets for help on using
tickets.
