How to wipe html special chars like   and others from text with the help of PHP?

php

Solution

.....

$newtext = html_entity_decode($your_text);

You got to remove ` ` separately:

$newtext = str_replace(' ', '', $newtext);

If you want to remove `html tags` too, you can use:

$newtext = strip_tags($newtext);

.......

Relevant Functions Reference:

html_entity_decode

strip_tags

str_replace

Problem

How to wipe html special chars like ` ` and others from text with the help of PHP?

Original source

Related problems