Ni Shurong wrote:

>>Hi!
>>
>>Why can? i get this code to work:
>>$html = $_POST["htmlIn"];
>>
>>$patterns[0] = "/<strike>/";
>>$patterns[1] = "/</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
>>
>>-- 
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
> 
> ----
> Ni Shurong <[EMAIL PROTECTED]>
> 
> MAIL : [EMAIL PROTECTED]
> QQ   : 412844
> MSN  : [EMAIL PROTECTED]
> BLOG : http://blog.njmars.com/myhan/
Thanx, but there seems to be problems with the patterns[2] and
replacements[2].

Thanx In Advance
Sleepy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to