PEAK XOOPS - Re: Replace ampersand with XHTML equivalent in englishin japanese

Re: Replace ampersand with XHTML equivalent

List posts in the topic

question Re: Replace ampersand with XHTML equivalent

msg# 1.1
depth:
1
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/15 3:52
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Do you mean extra escaping of & ?

eg)
in news: <title>You & me</title>
in xhld: You & amp; me

If so, try this pattern of template.

original:
<{$items[i].title|escape}>

modified:
<{$items[i].title|escape|regex_replace:'/\& amp\;([0-9a-zA-Z]{2,10}\;)/':'&\\1'}>
note: remove space between "&" and "amp"
Votes:9 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!