Project

General

Profile

Bug #14875 ยป class.t3lib_parsehtml_proc.php.patch

Administrator Admin, 2006-03-28 04:01

View differences:

t3lib/class.t3lib_parsehtml_proc.php 25 Mar 2006 22:58:42 -0000
/**
* Transformation handler: 'ts_links' / direction: "db"
* Converting <A>-tags to <LINK tags>
* Converting <A>-tags to <link tags>
*
* @param string Content input
* @return string Content output
......
}
if (!count($attribArray_copy)) { // Only if href, target and class are the only attributes, we can alter the link!
// Creating the TYPO3 pseudo-tag "<LINK>" for the link (includes href/url, target and class attributes):
$bTag='<LINK '.$info['url'].($attribArray['target']?' '.$attribArray['target']:(($attribArray['class'] || $attribArray['title'])?' -':'')).($attribArray['class']?' '.$attribArray['class']:($attribArray['title']?' -':'')).($attribArray['title']?' "'.$attribArray['title'].'"':'').'>';
$eTag='</LINK>';
$bTag='<link '.$info['url'].($attribArray['target']?' '.$attribArray['target']:(($attribArray['class'] || $attribArray['title'])?' -':'')).($attribArray['class']?' '.$attribArray['class']:($attribArray['title']?' -':'')).($attribArray['title']?' "'.$attribArray['title'].'"':'').'>';
$eTag='</link>';
$blockSplit[$k] = $bTag.$this->TS_links_db($this->removeFirstAndLastTag($blockSplit[$k])).$eTag;
} else { // ... otherwise store the link as a-tag.
// Unsetting 'rtekeep' attribute if that had been set.
......
/**
* Transformation handler: 'ts_links' / direction: "rte"
* Converting <LINK tags> to <A>-tags
* Converting <link tags> to <A>-tags
*
* @param string Content input
* @return string Content output
......
function TS_links_rte($value) {
$value = $this->TS_AtagToAbs($value);
// Split content by the TYPO3 pseudo tag "<LINK>":
// Split content by the TYPO3 pseudo tag "<link>":
$blockSplit = $this->splitIntoBlock('link',$value,1);
foreach($blockSplit as $k => $v) {
$error = '';
    (1-1/1)