none
HTML code not working RRS feed

  • Question

  • It seems that the thread body is not completely HTML compatible.  When I tried to strikeout some words:

    <strike>Words to be striked out.</strike>

    It shows in the editor but not after submission:



    Strangely, when you hit edit and "insert HTML code", the strike tags are still there.
    Wednesday, August 14, 2013 5:31 PM

Answers

All replies

  • This is showing as striked out here - it may be due to the theme of whichever site you're using.  Via the MSDN theme, the strike tags work fine.


    Reed Copsey, Jr. - http://reedcopsey.com - If a post answers your question, please click Mark As Answer on that post. If you find a post helpful, please click Vote as Helpful.

    Wednesday, August 14, 2013 5:44 PM
  • I'm seeing the strikeout as well. I've tried appending as many TechNet sub-brandings as I can think of (/windowsserver/, /sqlserver/, /scriptcenter/) and I keep seeing the strikeout.


    Don't retire TechNet!

    Wednesday, August 14, 2013 5:49 PM
    Moderator
  • haha got ya both.

    The entry that shows the actual strikeout is in fact a screenshot I took, just to prove the point.

    There is still the problem of the body does not recognize certain HTML features, such as strikeouts.

    If others are having different experiences, what browsers are you using?  I'm using Chrome here.
    Wednesday, August 14, 2013 6:30 PM
  • It seems that the thread body is not completely HTML compatible.  When I tried to strikeout some words:

    <strike>Words to be striked out.</strike>

    It shows in the editor but not after submission:

    The <strike> element is deprecated in HTML 4.01, and not supported in HTML5. Try <del> instead.

    David Wilkinson | Visual C++ MVP

    Wednesday, August 14, 2013 7:42 PM
  • <del>Words to be striked out</del>

    Same thing.  Somehow the <del> tag is changed to &lt;del&gt;
    Wednesday, August 14, 2013 8:02 PM
  • haha got ya both.

    The entry that shows the actual strikeout is in fact a screenshot I took, just to prove the point.

    There is still the problem of the body does not recognize certain HTML features, such as strikeouts.

    If others are having different experiences, what browsers are you using?  I'm using Chrome here.

    Hah, jerk. =]

    Here's my attempt with the <del> tags (using FF):

    <del>Text should be struck out.</del>

    The text appears struck out now, let's see how it looks after posting.<del></del>


    Don't retire TechNet!

    Wednesday, August 14, 2013 8:05 PM
    Moderator
  • Okay, weird.

    The text was struck out in the editor, but it didn't survive the posting process. Not only that, but I ended up with a different language under the posts until I hit refresh:


    Don't retire TechNet!

    Wednesday, August 14, 2013 8:08 PM
    Moderator
  • Okay, weird.

    The text was struck out in the editor, but it didn't survive the posting process. Not only that, but I ended up with a different language under the posts until I hit refresh:



    Don't retire TechNet!

    This is starting to sound creepy, and it's not Halloween yet.
    Wednesday, August 14, 2013 8:13 PM
  • <del>Words to be striked out</del>

    Same thing.  Somehow the <del> tag is changed to &lt;del&gt;
    Same thing happens with <strike>.

    David Wilkinson | Visual C++ MVP

    Wednesday, August 14, 2013 8:30 PM
  • <strike>Test 1</strike>

    <del>Test 2</del>

    Fail!


    Ed Price, SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!


    Friday, August 16, 2013 3:10 PM
    Owner
  • Thanks for finding this!

    I submitted the bug request to the Forums app team. Thanks again!


    Ed Price, SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!

    Friday, August 16, 2013 3:14 PM
    Owner
  • It seems that the thread body is not completely HTML compatible.  When I tried to strikeout some words:

    <strike>Words to be striked out.</strike>

    It shows in the editor but not after submission:


    The <strike> element is deprecated in HTML 4.01, and not supported in HTML5. Try <del> instead.

    David Wilkinson | Visual C++ MVP

    Any other elements that might work?

    Thanks!


    Ed Price, SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!

    Friday, August 16, 2013 3:15 PM
    Owner
  • Idle curiosity, can you how you were able to strike out the strings. I tried in the Sandbox forum and could not get either of the tags to work.


    Richard Mueller - MVP Directory Services

    Friday, August 16, 2013 4:54 PM
    Moderator
  • Thanks, that worked.


    Richard Mueller - MVP Directory Services

    Friday, August 16, 2013 5:13 PM
    Moderator
  • > Idle curiosity, can you how you were able to strike out the strings.

    linethru:    < span style="text-decoration: line-through">

    super:    < span style="vertical-align: super">

     

    This is worthy of a Wiki article. Derosnec or Richard, do you want to write that up or should I?

    Thanks!


    Ed Price, SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!

    Wednesday, August 21, 2013 6:57 PM
    Owner
  • UPDATE: Bug number 1301986 was logged to track this.

    Thanks!


    Ed Price, SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!

    Wednesday, August 21, 2013 6:58 PM
    Owner
  • I'll write up an article for this.


    Richard Mueller - MVP Directory Services

    Wednesday, August 21, 2013 9:06 PM
    Moderator
  • Thanks for looking into it.
    Friday, August 23, 2013 6:08 PM
  •      This is worthy of a Wiki article. Derosnec or Richard, do you want to write that up or should I?

    Hmm.  I think not, Ed.

    How about one on being banned then?   <eg>

    For example, I have often wondered when you go if you really have to take all your good stuff with you?   ; )

     



    Robert Aldwinckle
    ---

    Saturday, August 24, 2013 4:20 PM