...what you will not be able to use across all clients. See also Designing HTML emails
...package you use) does something like this anywhere: let response = await fetch('/page') let html = await response.text() document.querySelector('#content').innerHTML = html Now the virality of strict-dynamic allows the attacker...
Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when you still need to escape it. Examples are some safe...
...HTML that you pipe through JSON, or the display of an otherwise safe embed snippet. There is no semantically nice way to do this, as even raw and h do...
I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you want to see the actual dimensions of elements, e.g. for...
Imagine you have a list you want to render inline on large screens, but stacked on small screens. high
REST Client to ask the server for default text/html that way: RestClient.get(site, {:accept => :html...
.../tmp/github.html Paste your markdown Press Ctrl-D to finalize your input Open the generated HTML file and print it.
In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug those using your normal email account, you might be out...
...will simply throw away the plaintext part of your mail, and just save the html part...
Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that: David's Chapter Looking at the page's HTML, your field's...
...ApplicationController skip_before_action :verify_authenticity_token def not_found render :status => 404, :formats => [:html] end def server_error render :status => 500, :formats => [:html] end end Add the corresponding views...
...see in this order: """ Alpha Group Augsburg Berlin Beta Group """ The step ignores all HTML tags and only tests on plain text...
How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea...
...useful not just for upgrading suites from Webrat, but really anywhere you have an HTML fragment or string that you’d like to use Capybara’s matchers on...
A list of FontAwesome icons in the form of copyable Unicode characters or HTML entities. You might prefer to use FontAwesome by simply typing out these characters instead of using...
Since Firefox 8 it is possible to define custom context menus (right clicking) with HTML markup...
"one & two".convert_miscellaneous_characters # => "one and two" "my words".convert_miscellaneous_html_entities # => "my words" I18n.locale = :da "one & two".convert_miscellaneous_characters # => "one og two"
...words".convert_miscellaneous_html_entities # => "my mellemrum words...
...you should never do this (notice the whitespace in front of #): <% # my comment %> my html This leads to strange html output. To avoid long debugging sessions, you should never have...
This step tests whether a given select option comes preselected in the HTML. There is another step to test that an option is available at all. Capybara Then /^"([^"]*)" should be...
...This is only possible with the {} attribute syntax, not with the () attribute syntax. Example: HTML5 data attributes HTML5 allows you to use arbitrary attributes like data-method and data-confirm...
...Cameron (born August 16, 1954) Science fiction Trailer Further reading: How to Create an HTML5 Microdata Powered Resume
When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...
...scrolling by default. You can address this by disabling smooth scrolling in tests: body, html { scroll-behavior: auto !important; } If you have other scrolling elements with overflow-y: scroll or...
tinyMCE.activeEditor.getContent()
New WYSIWYG editor that claims to be lighter and prettier than TinyMCE and CKEditor. Has some Rails integration, too.