PHP expert |
|
var string = '<p style="font-weight: bold;">Text</p>';
var regex = new RegExp("<p([^>]*)>(.*?)</p>","i");
string = string.replace(regex, "$2");
var string = '<p style="font-weight: bold;">Text</p>'; var regex = new RegExp("<p([^>]*)>(.*?)</p>","i"); string = string.replace(regex, "$2");
Should do the trick.  |