| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __construct() |
||
| 14 | { |
||
| 15 | // Remove obsolete <p class="uiv-source">...</p> tag. |
||
| 16 | // Do NOT strip any other HTML markup! HTML is allowed for formatting. |
||
| 17 | $this->addFilter(new StripSourceStringFilter()); |
||
| 18 | |||
| 19 | // Remove any surrounding spaces and put the whole string on a single line. |
||
| 20 | $this->addFilter(new ConsecutiveBlockOfTextStringFilter()); |
||
| 21 | |||
| 22 | // Convert <br> and <br /> tags to newlines. |
||
| 23 | $this->addFilter(new BreakTagToNewlineStringFilter()); |
||
| 24 | |||
| 25 | // Remove any surrounding space caused by converting <br /> to newlines. |
||
| 26 | $this->addFilter(new StripSurroundingSpaceStringFilter()); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |