Comments (2)
Believe it not, it was just that I set the maximum length of an attribute name to 15 characters. I've updated this to 128.
from templ.
Wouldn't mind your thoughts on: #16
It would likely break your code above which uses a string:
{%= a.Url %}
This would have to be changed to:
{%= templ.URL(a.URL) %}
This would then ensure that a.URL
is sanitised by templ, to remove potential attack vectors from the href attribute. To avoid the extra sanitisation, you'd use templ.SafeURL(a.URL)
to mark the variable content as trusted.
from templ.
Related Issues (20)
- Is this a bug a.k.a what inputs do components support? HOT 5
- (bug, templ v0.2.646): parsing error: if: expected nodes, but none were found HOT 2
- Css-modules integration HOT 1
- cmd: report go compile issues on templ generate HOT 3
- Q: Can "ifs" handle short statements before conditions HOT 1
- parser: Space after `for` breaks parsing HOT 1
- cmd: templ generate watch doesn't reload after changing go-files HOT 12
- generator: *string attribute value is ignored HOT 2
- feature: add ternary operator for HTML attributes HOT 6
- feature: add folding to LSP HOT 9
- feature: add syntax highlighting support to Github - needs Grammar Regex Adjustments HOT 18
- can't start sentence with `for` HOT 4
- refactor: add `tel:` as safe URL protocol HOT 1
- cmd: add `--notify` to `generate --watch` in cli HOT 2
- docs: document SafeCSSProperty function HOT 4
- proposal: support HTML style component authoring HOT 8
- bug: Text files aren't removed after templ generate -watch is closed HOT 1
- bug: Cosmetic bug in templ version check message
- doc: add more hot reload example HOT 4
- parser: Issue parsing slice types in templ expressions HOT 1
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 templ.