Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: Truncation of individual "Nodes to Consider"

by LanX (Sage)
on Dec 02, 2021 at 12:12 UTC ( #11139314=note: print w/replies, xml ) Need Help??

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

  • Comment on Re^2: Truncation of individual "Nodes to Consider"

Replies are listed 'Best First'.
Re^3: Truncation of individual "Nodes to Consider"
by kcott (Bishop) on Dec 03, 2021 at 11:02 UTC

    G'day Rolf,

    ++ (x3) Thanks for the effort you put in to investigate this. It's appreciated.

    Yes, 64kB is roughly the number I seem to remember seeing in documentation somewhere on this site; unfortunately, I can't locate this and don't remember the exact number. Also, I'm pretty certain I've never attempted to post anything that large.

    It looks like implementing this request would involve a massive amount of work and, as such, probably won't happen. That's fine: it's just a feature, not a bug fix, and the situation that I described only occurs rarely.

    — Ken

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139314]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-01-29 02:10 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (74 votes). Check out past polls.