-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from MenschDankeGmbH/2.0
Properly secure output
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fa0a604
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually good to force escaping? Now you can't for eg. use Font Awesome icons in link titles...
fa0a604
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@redd you can use them using classes I believe.
fa0a604
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately not, the markup is for eg.
<i class="fa fa-camera-retro"></i> Here goes link title
.I think the best solution should be the same options like in HtmlHelper::link -
escape
andescapeTitle
.fa0a604
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@redd ok, I will try to add escaping as an option. Meanwhile if you need then you can use v2.0.1.
fa0a604
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can check my pull request, maybe you'll find something helpful :)