Leaflet/docs/examples/layers-control
Dan Turkel b80b2e4f99 Escape html elements inside code sample (#5432)
The markup renderer will still literally render html tags inside "pre" and "code" unless they're escaped. The result was that the example code would be rendered as:
var baseMaps = {
	"Grayscale": grayscale,
	"Streets": streets
};
rather than
var baseMaps = {
	"<span style='color: gray'>Grayscale</span>": grayscale,
	"Streets": streets
};
because the "Grayscale" text would be literally styled as a span with gray color, and then recolored by the syntax highlighter.

Escaping the span tags fixes this.
2017-04-04 21:31:36 +02:00
..
example.md rotate access tokens (#5338) 2017-02-16 09:44:50 +02:00
index.md Escape html elements inside code sample (#5432) 2017-04-04 21:31:36 +02:00
thumbnail.png Clean up docs/examples - one directory per tutorial, more templating. (#4965) 2016-09-30 13:56:05 +02:00