Template:ReplaceBreak/doc

This utility template is intended to be used with ClimateCats and TerrainCats, but might also find use elsewhere. It takes a string and replaces HTML &lt;br /&gt; tags with commas. It then replaces any double commas with a single comma. As an added benefit, the  parser function removes potentially "harmful" HTML tags, which includes &lt;ref&gt; tags. If this behavior should ever change, Stripref will need to be called on each piece of the output. Breaks can be in any of three forms: &lt;br&gt;, &lt;br/&gt;, or &lt;br /&gt;.

Example: