Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: How to get raw node content

by huck (Vicar)
on Sep 15, 2017 at 19:53 UTC ( #1199477=note: print w/replies, xml ) Need Help??

in reply to How to get raw node content

When i want to do that i just use the "view page source" option in my browser. If that is still too much you may want to try adding displaytype=print ie and then "view page source"

Replies are listed 'Best First'.
Re^2: How to get raw node content (whitespace and nodelet hack)
by LanX (Bishop) on Sep 16, 2017 at 15:06 UTC
    Actually your approach is better to see whitespaces and linebreaks directly inside the browser, since the XML view in FF doesn't show it.

    FWIW here a nodelet hack which opens a JS.alert() with the HTML of the post you are trying to reply to.

    <script><!-- function show_quote() { alert(document.querySelector("div.preview").innerHTML.match(/^[^]*?(?= +<hr> <div class="editnodetext">)/)[0]); } --></script> <a href='javascript:show_quote()'> show_quote</a>

    (you need to be in a "comment on" node to make it work)

    it was part of my plans to extend my wiki-syntax with comfortable quoting of a users post...

    ... of course milking the XML-displaytype would be more reasonable here.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

Re^2: How to get raw node content
by LanX (Bishop) on Sep 15, 2017 at 20:44 UTC
    Sorry for nitpicking ...

    ... it's very close but that's not the raw input of the poster.

    For instance [links] are expanded and code tags have an extra download link.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

Re^2: How to get raw node content
by roboticus (Chancellor) on Sep 15, 2017 at 21:02 UTC


    Thanks, but that still has the HTML entities encoding and bracket ([ ]) munging.


    When your only tool is a hammer, all problems look like your thumb.

      How raw can we get?

      lynx -dump > dump.txt


      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

        I think you are missing the point, compare the data inside the xml link with the produced html.

        For instance you can see find* the original line breaks and indentation in the raw form if a poster forgets surrounding code tags

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!

        *) The xml view inside FF doesn't display the (included) line-breaks, but if one's copy the content to an editor it becomes visible again.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199477]
[erix]: yeah. it's been some time since I last built a (linux) kernel but perl takes less than 30s and postgresql less than 2 minutes minutes :)
[talexb]: Yep .. came across SuSE 6.2 in my storage locker recently. How old is that.
[erix]: 2001 :)
[erix]: (I have the wp pages open :))
[talexb]: 2001 sounds about right .. got myself a separate box just to run Linux on. Seriously clueless.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2018-07-17 17:49 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (374 votes). Check out past polls.