I want to delete all occurrences of this substring from my html file:

```
<span style="font-size: 12pt;">BLANK PAGE</span>

```

I tried str\_replace, thinking that would be a simple solution, but it does not work:

```
$html = str_replace('<span style="font-size: 12pt;">BLANK PAGE</span>', '', $html);

```

Any suggestions?

UPDATE: Mystery solved! Thanks to everyone for letting me know that this *should* work. Turns out the problem had nothing to do with str\_replace! I had grabbed the html string from firebug, not realizing that firebug inserts spaces to "prettify" the html. That's why str\_replace failed to find this exact pattern.
I would ideally like to delete this question, since the problem ended up having nothing to do with str\_replace. Is that possible?