How to convert HTML CSS class into style in pure python - what kind of library could be used on GAE ..

Is there any pure python library to use on Google App Engine which allow to convert HTML with CSS class into HTML with styles only for emailing purpose on gmail. Want to make such conversion on google app engine. XHTML with CSS class:

xxx

yyy

Considering that CSS is such: p.xx, p.yy { font-size: 120%; } p.yy { color:red; } I want to convert XHTML classes into styles to remove CSS inclusion as it required by Gmail:

xx

yy

Is any hint - I could try to code it in regex since CSS is simple but not want to invent the wheel again.

以上就是How to convert HTML CSS class into style in pure python - what kind of library could be used on GAE ..的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏