Why does my browser not interpret the escaped HTML tags?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Leif K-Brooks

    #16
    Re: Why does my browser not interpret the escaped HTML tags?

    Robert Bowen wrote:[color=blue]
    > Now, as to my problem. I don't actually WANT to use these characters
    > but for some reason when I save certain info in my Oracle database
    > (saved as a BLOB), when it is displayed on my jsp page, it is spit out
    > that way. Looking at the database it SEEMS as if it's being saved
    > "normally", as "<" and ">", and not the HTML symbols. But when it is
    > displayed, that's what comes out ...[/color]

    I haven't seen your page, but my best guess is that the data is stored
    correctly in the database, and that you're using a pre-written JSP
    script which automatically adds the entities (that's what &lt; and &gt;
    are called).

    Comment

    • Lars Eighner

      #17
      Re: Why does my browser not interpret the escaped HTML tags?

      In our last episode,
      <77723de8.04090 20943.57b26103@ posting.google. com>,
      the lovely and talented Robert Bowen
      broadcast on comp.infosystem s.www.authoring.html:
      [color=blue]
      > Lars Eighner <eighner@io.com > wrote in message news:<slrncjd99 c.1uu5.eighner@ goodwill.io.com >...[color=green]
      >> In our last episode,
      >> <77723de8.04090 11007.20f64c6c@ posting.google. com>,
      >> the lovely and talented Robert Bowen
      >> broadcast on comp.infosystem s.www.authoring.html:
      >>[color=darkred]
      >> > Hello peeplez. I have an odd problem. When I put the ANSI symbol for
      >> > "less than" ("<"), the word STRONG and then the ANSI symbol for
      >> > "greater than" (">") in my web page, followed by some text, then close
      >> > the STRONG tag the same way, my text appears in bold. No problem.[/color]
      >>[color=darkred]
      >> > When I do the same things with the corresponding HTML tags (&lt; ,
      >> > &gt; ) the tag is not interpreted, it is simply displayed:[/color]
      >>[color=darkred]
      >> ><STRONG>text </STRONG>[/color]
      >>
      >> That is exact what is supposed to happen.
      >>[color=darkred]
      >> > ... the same thing happens with any tag. What do I have to do to make
      >> > my browser (Firefox or Explorer) interpret the tag?[/color]
      >>
      >> You have to put the tag in literal "<" and ">". The point of have
      >> the character entities &lt; and &gt; is to allow you enter these
      >> characters in text so they *won't* be interpreted as opening and
      >> closing tag symbols.[/color][/color]
      [color=blue]
      > Ok, understood. Didn't know that. Thanks for the polite, informed and
      > attitude-free response. So despite what the previous poster said, you
      > understood what I said? Go figure.[/color]

      From later discussions, I understand your real problem is that some
      software you are using saves tags using &lt; and &gt; I know this is
      often the case with markup you are invited to copy (such as banner
      codes). Experiment with various "Save As" options with your software.
      Perhaps you will find one that will save what you see as < and > as <
      and >. If you can't find one, I suggest you write a little perl
      script or a macro for your text editor that will make these changes
      for you.

      --
      Lars Eighner -finger for geek code- eighner@io.com http://www.io.com/~eighner/
      If it wasn't for muscle spasms, I wouldn't get any exercise at all.

      Comment

      • Robert Bowen

        #18
        Re: Why does my browser not interpret the escaped HTML tags?

        Lars Eighner <eighner@io.com > wrote in message news:<slrncjf48 b.22kl.eighner@ goodwill.io.com >...[color=blue]
        > In our last episode,
        > <77723de8.04090 20943.57b26103@ posting.google. com>,
        > the lovely and talented Robert Bowen
        > broadcast on comp.infosystem s.www.authoring.html:
        >[color=green]
        > > Lars Eighner <eighner@io.com > wrote in message news:<slrncjd99 c.1uu5.eighner@ goodwill.io.com >...[color=darkred]
        > >> In our last episode,
        > >> <77723de8.04090 11007.20f64c6c@ posting.google. com>,
        > >> the lovely and talented Robert Bowen
        > >> broadcast on comp.infosystem s.www.authoring.html:
        > >>
        > >> > Hello peeplez. I have an odd problem. When I put the ANSI symbol for
        > >> > "less than" ("<"), the word STRONG and then the ANSI symbol for
        > >> > "greater than" (">") in my web page, followed by some text, then close
        > >> > the STRONG tag the same way, my text appears in bold. No problem.[/color][/color]
        >[color=green][color=darkred]
        > >> > When I do the same things with the corresponding HTML tags (&lt; ,
        > >> > &gt; ) the tag is not interpreted, it is simply displayed:[/color][/color]
        >[color=green][color=darkred]
        > >> ><STRONG>text </STRONG>
        > >>
        > >> That is exact what is supposed to happen.
        > >>
        > >> > ... the same thing happens with any tag. What do I have to do to make
        > >> > my browser (Firefox or Explorer) interpret the tag?
        > >>
        > >> You have to put the tag in literal "<" and ">". The point of have
        > >> the character entities &lt; and &gt; is to allow you enter these
        > >> characters in text so they *won't* be interpreted as opening and
        > >> closing tag symbols.[/color][/color]
        >[color=green]
        > > Ok, understood. Didn't know that. Thanks for the polite, informed and
        > > attitude-free response. So despite what the previous poster said, you
        > > understood what I said? Go figure.[/color]
        >
        > From later discussions, I understand your real problem is that some
        > software you are using saves tags using &lt; and &gt; I know this is
        > often the case with markup you are invited to copy (such as banner
        > codes). Experiment with various "Save As" options with your software.
        > Perhaps you will find one that will save what you see as < and > as <
        > and >. If you can't find one, I suggest you write a little perl
        > script or a macro for your text editor that will make these changes
        > for you.[/color]


        What I have is a jsp page which has that Microsoft Internet Explorer
        edit window which allows you to input HTML-marked-up text, with HTML
        tags, etc. The JDBC driver sends it to the Oracle database which saves
        it as a BLOB. I guess it's Oracle's BLOB storage which is making my
        life miserable. I did a copy-paste direct from the database to a text
        editor and viewed it in a browser, same problem -- the tags are not
        interpreted.

        I guess what I'll do it write a little parser in java that subsitutes
        the symbols for the tags. Kind of defeats the purpose of saving
        marked-up text but anyway.

        BTW, I *was* only talking about the one poster who took it upon
        himself to slag me off instead of offering help, or simply ignoring
        me. Aside from him ALL responses *were* helpful, and I take this
        chance to thank you all again.

        syg

        Comment

        • jmm-list-gn

          #19
          Re: Why does my browser not interpret the escaped HTML tags?

          Robert Bowen wrote:[color=blue]
          >
          > What I have is a jsp page which has that Microsoft Internet Explorer
          > edit window which allows you to input HTML-marked-up text, with HTML
          > tags, etc. The JDBC driver sends it to the Oracle database which saves
          > it as a BLOB. I guess it's Oracle's BLOB storage which is making my
          > life miserable. I did a copy-paste direct from the database to a text
          > editor and viewed it in a browser, same problem -- the tags are not
          > interpreted.
          >[/color]
          You are guessing about where the conversion occurs.
          If the text is stored as a BLOB, there is no reason for the conversion
          to char entities since the storage is binary, byte-for-byte exact, no
          interpretation whatever. Why would it care?
          The most likely place for the conversion is the special IE edit window.
          Capture the output from that and see what it looks like.

          --
          jmm dash list (at) sohnen-moe (dot) com
          (Remove .AXSPAMGN for email)

          Comment

          Working...