en | fr

The Html class


Class responsible for generating HTML strings that will be rendered to the user.


tag

Generates an HTML tag. For instance:

Html.tag('a', { href: 'meta/index'}, 'Home page')
// => '<a href="meta/index">Home page</a>'
Html.tag('img', { src: 'foo.png'})
// => '<img src="foo.png">'
Html.tag('div', 'box', () => { return "Hello world"})
// => '<div class="box">Hello world</div>'

Parameters

Returns String


options

Returns the necessary mark-up to display a media’s options for sharing, downloading, tagging or adding a media to a playlist.

Parameters

Returns String


glyphicon

Returns a span having the proper Glyphicon’s class.

Parameters

Returns String