Ticket #1201 (closed enhancement: fixed)

Opened 7 months ago

Last modified 7 months ago

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

Changed 7 months ago by ray

  • status changed from new to closed
  • resolution set to fixed

added rev [998]

Note: See TracTickets for help on using tickets.