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

XF 1.1 HTML in phrases doesn't work

Discussion in 'Troubleshooting and Problems' started by Luxus, Apr 7, 2013.

  1. Luxus

    Luxus Well-Known Member

    I tried to use HTML code in phrases but it didn't work.
    pr.png

    The result is this:

    pr2.png
     
  2. xf_phantom

    xf_phantom Well-Known Member

    HTML is escaped by default in phrases
    PHP:
    /**
    * Constructor
    *
    * @param string|array  Phrase name (or, array(phraseName, arg1 => x, arg2 => y...)
    * @param array         Key-value parameters
    * @param boolean|array See {@link $_insertParamsEscaped}
    */
    public function __construct($phraseName, array $params = array(), $insertParamsEscaped true)
     
    Luxus likes this.
  3. Luxus

    Luxus Well-Known Member

    But there are many phrases with <a> tags that work. Did something change in 1.1.4 or do only <a> tags work?
     
  4. Onimua

    Onimua Well-Known Member

    I don't think you can use HTML in phrases for the ACP sidebar like that. That may be one of the only exceptions.
     
  5. Luxus

    Luxus Well-Known Member

    You are right. That sucks incredibly for us translators :(
     

Share This Page