Opened 12 years ago

Closed 12 years ago

#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:


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 (1)

comment:1 Changed 12 years ago by ray

  • Resolution set to fixed
  • Status changed from new to closed

added rev [998]

Note: See TracTickets for help on using tickets.