[TYPO3-dev] cropHtml as new Feature for stdWrap

Steffen Kamper steffen at dislabs.de
Thu Jan 11 13:54:21 CET 2007


"Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
Newsbeitrag 
news:mailman.1.1168519297.21867.typo3-dev at lists.netfielders.de...
> Steffen Kamper schrieb:
>>
>> If you have an idea how to read html into an array like the dom-function 
>> we could replace it - may be a useful function for other properties.
>
> You can do it by walking the string with a regexp. Has the advatage that 
> you don't need to parse the whole string, as you can terminate after the 
> first n byte of text.
>
> Masi

not really - forward is ok, but you need to close all tags. so you have to 
remember all tags and make the closing backwards.
Sounds for me very tricky and complex, in my solution it's more easy cause 
the array and recursive call.

vg  Steffen 






More information about the TYPO3-dev mailing list