To start with try replacing:

$patterns[1] = "/</strike>/";

with

$patterns[1] = "/<\/strike>/";

Rgds

John

---




Hi!

Why canīt i get this code to work:
$html = $_POST["htmlIn"];

$patterns[0] = "/<strike>/";
$patterns[1] = "/</strike>/";
$patterns[2] = "/align=\"left\"/";

$replacements[0] = "<del>";
$replacements[1] = "</del>";
$replacements[2] = " style=\"text-align:left;\"";

$xhtml = preg_replace($patterns, $replacements, $html);

Thanx In Advance
Jay

Reply via email to