We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3046
    • 48 Posts
    Hello everybody.

    May be smb make me a favor and help to resolve this problem.

    SO, when some of page title looks like: Newspaper "Daily"

    quotes became unexpected elements for W3C in <a title=""Newspaper "Daily"" ...>

    So to resolve the problem is to make [+wf.title+] goes through htmlentities

    But i have no idea how to...
      • 36404
      • 307 Posts
      hi,

      a solution may be to use a config file (actually, what i do all the time...) instead of chunks in wayfinder call
      as the config files are php files you could probably transform
      $rowTpl = '@CODE:<li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>';

      into
      $rowTpl = '@CODE:<li[+wf.classes+]><a href="[+wf.link+]" title="'.htmlentities([+wf.title+]).'">[+wf.linktext+]</a>[+wf.wrapper+]</li>';


      else you could also "hack" wayfinder settings in the manager -> snippet -> wayfinder
      'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle',
      //becoming
      'titleOfLinks' => isset($titleOfLinks) ? htmlentities($titleOfLinks) : htmlentities('pagetitle'),


      Have swing
        réfléchir avant d'agir