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.1
depth:
2
Previous post - Next post | Parent - No child | Posted on 2006/10/15 20:13
JMorris  二等兵   Posts: 4
Yes, but on a few different peices of code.

In xhld0_block_mixed.html, I changed
<{$block.items[i].title}>
To
<{$block.items[i].title|escape|regex_replace:'/\& amp\;([0-9a-zA-Z]{2,10}\;)/':'&\\1'}>

And in xhld0_feed.html, I changed
<td colspan="2" class="odd"><{$items[i].content}></td>
To
<td colspan="2" class="odd"><{$items[i].content|escape|regex_replace:'/\& amp\;([0-9a-zA-Z]{2,10}\;)/':'&\\1'}></td>

And
<td colspan="3"><a href="<{$items[i].link}>" target="_blank"><{$items[i].title}></a></td>
To
<td colspan="3"><a href="<{$items[i].link}>" target="_blank"><{$items[i].title|escape|regex_replace:'/\& amp\;([0-9a-zA-Z]{2,10}\;)/':'&\\1'}></a></td>

All with the space between & amp; removed.

So, in a word PERFECT!

Thanks!!!

James
Votes:7 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!