Skip to content

Files

Latest commit

 

History

History
25 lines (17 loc) · 549 Bytes

CheckContentTag.md

File metadata and controls

25 lines (17 loc) · 549 Bytes

Pattern: Unescaped value in content_tag

Issue: -

Description

Checks for unescaped values in content_tag:

content_tag :tag, body
				   ^-- Unescaped in Rails 2.x

content_tag, :tag, body, attribute => value
							^-- Unescaped in all versions

content_tag, :tag, body, attribute => value
										^
										|
		Escaped by default, can be explicitly escaped
		or not by passing in (true|false) as fourth argument

Further Reading