Loading ...
Sorry, an error occurred while loading the content.

7260Re: [NH] How do I get HTML to show up as plain text in a web page

Expand Messages
  • Bob McAllister
    Nov 7, 2012
      Option 1

      <xmp></xmp> was a tag for Examples of HTML. Now deprecated but still works
      fine in Chrome. (Check other browsers).

      Option 2

      Use a textarea to pull your code out of the rendering.

      <form>
      <textarea rows="3" cols="80" wrap="off" readonly="readonly">
      <p class="date"><strong><a
      href='http://epicroadtrips.us/2010/mich-ont/d1/' target="_blank"
      title="Friday, June 11">Friday, June 11</a></strong></p>
      </textarea>
      </form>

      It seems to work without the <form></form> but the page would not validate
      with a bare form element.

      Bob

      On 8 November 2012 05:58, Mike Breiding - Morgantown WV <
      mike@...> wrote:

      >
      > I want this HTML to show up as plain text, not a link, in a web page How
      > do I do that?
      >
      > <p class="date"><strong><a
      > href='http://epicroadtrips.us/2010/mich-ont/d1/' target="_blank"
      > title="Friday, June 11">Friday, June 11</a></strong></p>
      >
      > I tired <pre> and <code> but that did not work.
      >
      >
      > Thanks,
      > -Mike
      >
      >


      [Non-text portions of this message have been removed]
    • Show all 12 messages in this topic