python 3.x - HTML tag with attribute containing hyphen -


i have requirement generate html python. using html module. use angularjs in application have add attribute 'ng-controller' in div tag.(a attribute name contain hyphen) example

<div ng-controller='mycontroller'></div> 

html module not allow hyphen or special character part of attribute name.

i tried lot, not able find solution. can please me on this?

i checked html module there raw_text() function allow user explicitly add html code.

from html import html()  h = html()  h.raw_text('<div ng-controller="a"></div>')


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -