1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

As Designed Text of edited phrase showing html code

Discussion in 'Resolved Bug Reports' started by Mr Lucky, Oct 29, 2014.

  1. Mr Lucky

    Mr Lucky Well-Known Member

    I have edited a phrase:
    following_words_were_not_included_in_your_search_x

    The edit box says I can use html so I included a line break
    HTML:
    <br />
    However when rendered on the page after a search includes words that are too small, instead of an actual line break the text shows the html code
    HTML:
    <br />
     
  2. Liam W

    Liam W Well-Known Member

    Only some phrases allow HTML - it depends on how they're included in the template.

    Liam
     
  3. Mr Lucky

    Mr Lucky Well-Known Member

    Yes, but this phrase says it allows html.
     
  4. Mike

    Mike XenForo Developer Staff Member

    The message is listed in all phrases as it's generally true and it's not possible to know whether or not it's always true. At best, it would lead to a tweak indicating that HTML can usually be used or simply a removal of that note.
     
  5. Mr Lucky

    Mr Lucky Well-Known Member

    That would be useful. It would also be useful if there was a WYSIWYG so we can know whether it's safe to use html.

    I believe as it stands the message is misleading,
     
  6. Mike

    Mike XenForo Developer Staff Member

    So as implied, this is expected/as designed - whether HTML is appropriate is context sensitive. I've removed the implication that HTML is always valid in a phrase though.
     
    Mr Lucky likes this.
  7. Mr Lucky

    Mr Lucky Well-Known Member

    Great, that makes total sense.
     

Share This Page