in reply to Re: Truncation of individual "Nodes to Consider"
in thread Truncation of individual "Nodes to Consider"
> Hmm, stuff with HTML is not that easy to truncate cleanly. It's certainly possible, but the server might have to generate the appropriate end tags.
PM is using a selfmade configurable parser to
- "validate" the HTML and
- activate the markup and
- deactivate potentially malicious elements.
IMHO it's not 100% correct and has loopholes.
A truncation mechanism would need to be added on top of this, which is unlikely.
Anyway folding away huge branches of the DOM might be far better and easier than truncating, but would still require a better parser.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Truncation of individual "Nodes to Consider"
by kcott (Archbishop) on Dec 03, 2021 at 11:02 UTC |
In Section
Perl Monks Discussion