Jump to content

[SOLVED] string replace question


defeated

Recommended Posts

Can I use wildcards in str_replace

eg. can

$replacing=str_replace("<p style='text-align:center;'>","<p>","$anyoldhtml");

be written as

$replacing=str_replace("<p*>","<p>","$anyoldhtml");

??

 

 

I want to reformat a whole load of text from tinyMce that is causing problems with my page validations.... plus there is just too much code created by tinyMce. 

Link to comment
https://forums.phpfreaks.com/topic/111467-solved-string-replace-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.