Skip to content

Instantly share code, notes, and snippets.

@dbernar1
Created April 29, 2014 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbernar1/11398545 to your computer and use it in GitHub Desktop.
Save dbernar1/11398545 to your computer and use it in GitHub Desktop.
Inline PHP tags test for core/test_html_escaping.rb
def test_html_unescaped_php_tags
source = %q{
a href="<?php echo $url ?>"
}
assert_html '<a href="<?php echo $url ?>"></a>', source
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment