[Typo3] what is the core api function to convert LINK to html tags ?

Jochen Rieger j.rieger at connecta.ag
Wed Dec 7 20:21:47 CET 2005


Hi typo3-ml (again ... nice name! ;) ),

a rough way would be just to use the method

t3lib_parsehtml_proc::TS_links_rte($value)

Of cause you would have to include the file first and then still you 
have to parse the db content for the <LINK> texts (or you got that 
already!?).

In my extension cag_linkchecker, I did it like that (assuming that all 
external links include http or https:

Got a record from tt_content, then

preg_match_all("/(?:http|https)(?::\/\/)(?:[^\s<>]+)/i",$row['bodytext'],$urls, 
PREG_PATTERN_ORDER);

// Check external links for validity
for ($i = 0; $i < sizeof($urls[0]); $i++) {

   // do here whatever you like with the URL
   $yourURL = $urls[0][$i];

}

Maybe that'll help ya out.

Regards,
Jochen


typo3-ml at w3tex.com wrote:
> I'm trying to instantiate the t3lib_parsehtml_proc
> to use rte_links
> with no success
> i can instantiate t3lib_parsehtml
> but no t3libparsehtml_doc
> 
> please help, i need some code samples
> to convert to HTML RTE tags like LINK
> with my extension
> 
> thanks.
> 
> On 7 déc. 05, at 18:38, typo3-ml at w3tex.com wrote:
> 
>> Hi,
>>
>> what is the core api function to convert LINK to html tags ?
>>
>> thanks.
>>
>> _______________________________________________
>> Typo3-english mailing list
>> Typo3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
> 

-- 
:: innovative it-strategies ::
::                          ::
:: www.connecta.ag          ::



More information about the TYPO3-english mailing list