Welcome! » Log In » Create A New Profile

replace tag with space

Posted by oleg 
replace tag with space
December 11, 2017 12:02PM

how can i replace html tag with space for example if i have

<a>Foo</a><p style=&#039;color:red;&#039;>Bar</p>

and i want to get just "Foo Bar" not FooBar

it is hard for me to read docs in english as i am from Ukraine, thanks for help

Edited 1 time(s). Last edit at 12/12/2017 03:37AM by oleg.

Re: replace tag with space
May 18, 2018 04:16PM

Unfortunately this is not supported by HTML Purifier. Maybe see if you can some HTML to TXT converters.

Your Email:


HTML input is enabled. Make sure you escape all HTML and angled brackets with &lt; and &gt;.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

Place code here

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}