Module:HTMLParse/doc: Difference between revisions

277 bytes added ,  19:02, 20 August 2019
no edit summary
mNo edit summary
No edit summary
Line 8: Line 8:


==Pluralize==
==Pluralize==
Pluralizes an HTML string by inserting an "s" between the final alphabetic character and closing tag </
For example, <code><nowiki><span>book</span></nowiki></code> becomes <code><nowiki><span>books</span></nowiki></code>
Won't pluralize anything that already ends in "s"
===Usage===
===Usage===
<nowiki>{{#invoke: HTMLParse | pluralize | html = (html string here) }}</nowiki>
<nowiki>{{#invoke: HTMLParse | pluralize | html = (html string here) }}</nowiki>