Comments (3)
looks like the html package also remaps & to &. Does that need to be added?
Yes! Fixed it!
from quicktemplate.
quicktemplate should escape single quotes - see the corresponding code and this test.
Could you provide a short quicktemplate
example, which doesn't escape single quote?
from quicktemplate.
Ooops, you are correct. Thanks for the quick response and sorry for wasting your time.
On 2nd glance, looks like the html package also remaps &
to &
. Does that need to be added?
Test:
{% func TestEscapeAmpersand() %}
{%s "&" %}
{% endfunc %}
from quicktemplate.
Related Issues (20)
- New Feature Request - optimized right/left padding %s option
- Uint32 and Uint64 support? HOT 3
- Function type which is called once at compile time HOT 1
- don't work {% case []string %} inside {% switch r.(type) %} HOT 3
- Is quicktemplate safe to render external template from the user?
- Discussion about IDE integration HOT 4
- Use custom Localizer/Formatter
- Allow Call Render Function in Objects
- Why Quicktemplate is NOT the faster? HOT 1
- [Question] leading new line HOT 2
- Multiple languages in templates
- HTML Encoding happens even when equal signs are being used to turn off encoding HOT 1
- Go language server ignores the compiled templates
- hot reload template
- Security: templates are vulnerable to XSS
- Can quicktemplate be used for replacing text/template? HOT 1
- Should a template define at least one function?
- qtc binary is not installed by the command suggested by README HOT 1
- Compile to wasm when template changes
- fasthttp inadvertently pulled in as a dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quicktemplate.