Skip to content
  • Andrew Nicols's avatar
    83ca0704
    MDL-53509 mod_forum: Stop over-escaping quoted variables · 83ca0704
    Andrew Nicols authored
        {{# quote }}<a href=\"foo\">{{/ quote }}
    
    becomes:
    
        "<a href=\\"foo\\">"
    
    This causes a mustache syntax error.
    
    The quote helper negates the need to escape quotes in normal use, e.g.:
    
        {{# quote }}<a href="foo">{{/ quote }}
    
    which instead becomes:
    
        "<a href=\"foo\">"
    83ca0704
    MDL-53509 mod_forum: Stop over-escaping quoted variables
    Andrew Nicols authored
        {{# quote }}<a href=\"foo\">{{/ quote }}
    
    becomes:
    
        "<a href=\\"foo\\">"
    
    This causes a mustache syntax error.
    
    The quote helper negates the need to escape quotes in normal use, e.g.:
    
        {{# quote }}<a href="foo">{{/ quote }}
    
    which instead becomes:
    
        "<a href=\"foo\">"
Loading