[TYPO3-dev] cropHtml as new Feature for stdWrap
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Thu Jan 11 16:23:01 CET 2007
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
More information about the TYPO3-dev
mailing list