17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1372 Views |
-
Multiple "broken" in class attribute of HTML Content

9 July 2007 at 11:27am
Hi,
if you one broken link more times in $Content, e.g. like:
<p><a href="xxx/">first</a> ... <a href="xxx/">second</a></p>then, after a few times of reading the content and saving in CMS, thre is an attribute class="broken broken broken ...".
I have changed the Field() method in HtmlEditorField.php to avoid this:
// Mark up broken links
if ($links) {
$links = array_unique($links);
foreach($links as $link) {
... -
Re: Multiple "broken" in class attribute of HTML Content

9 July 2007 at 11:39am
Sorry, one I have missed HTTP::getLinksIn(), so again:
// Mark up broken links
$links = HTTP::getLinksIn($content);
if ($links) {
$links = array_unique($links);
foreach($links as $link) {
... -
Re: Multiple "broken" in class attribute of HTML Content

9 July 2007 at 12:39pm
Thanks, I've applied this.
| 1372 Views | ||
|
Page:
1
|
Go to Top |


