Menu

backslash (\) handling in templates

Help
2002-06-24
2003-03-21
  • Nikola Toshev

    Nikola Toshev - 2002-06-24

    I have problems with handling backslashes in template tags and templates themselves. When PHPLib's template class processes a page with several backslashes there is a problem, for example two slashes (\\) become one (\). Should I escape this symbols by doubling them or there are other ways to deal with this?

    Thank you!

     
    • Nikola Toshev

      Nikola Toshev - 2002-06-25

      it seems phplib runs several (unpredictable number) passes when it processes templates. Any other suggestions?

       
    • Paul Jackson

      Paul Jackson - 2003-03-21

      But are there other ways to deal with this, it seems to break the rendering of the pages and make HTML standards hard to meet when double quotes are escaped and sometimes sent to the browser as double quotes and sometimes escaped quotes.

       
      • Richard Archer

        Richard Archer - 2003-03-21

        This was a bug in the template class and has been fixed.

         

Log in to post a comment.