Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined September 2014
·
arm
arm
US
·
·
0 Protips
1 Comments
Posted to
Safe vs Unsafe jQuery Methods
over 1 year ago
I wouldn't consider .attr as a safe method. Example: .attr('href', 'javascript:alert()')
Achievements
1 Karma
0 Total ProTip Views
I wouldn't consider .attr as a safe method. Example: .attr('href', 'javascript:alert()')