[TYPO3-dev] cropHtml as new Feature for stdWrap

Steffen Kamper steffen at dislabs.de
Thu Jan 11 17:08:45 CET 2007


"Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
Newsbeitrag 
news:mailman.1.1168528981.25966.typo3-dev at lists.netfielders.de...
> Steffen Kamper schrieb:
>> "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.
>
> I don't think it's complex. I guess the code is even shorter than your DOM 
> walkig code :-)
>
> Masi

ok, i try to rewrite it to non-dom, then i show it again ;)

vg  Steffen 






More information about the TYPO3-dev mailing list