Support

Account

Home Forums Backend Issues (wp-admin) layout_title gets escaped by JS after being rendered Reply To: layout_title gets escaped by JS after being rendered

  • after trying a few things it looks like the solution is to return stripslashes($title); any attempts to encode or decode html get cancelled out by the fact that the next time the ajax_layout_title loop runs JS will sanitize it.
    stripping right before returning let’s jQuery do whatever it wants with the string, cleaning up just before it is shown to the user.