weixin_39726971
weixin_39726971
2020-12-28 03:29

Sanitize release notes markdown using bleach

Also upgrade bleach to 0.5.1

Fix #8957

该提问来源于开源项目:mozilla/bedrock

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39726971 weixin_39726971 4月前

    This will escape disallowed tags and leave the allowed ones.

    点赞 评论 复制链接分享
  • weixin_39610678 weixin_39610678 4月前

    I took a look through a bunch of other release pages and what's in the allowed list seems good 👍

    点赞 评论 复制链接分享
  • weixin_39610678 weixin_39610678 4月前

    Oh, looks like circle failed with:

    
    ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
        packaging from https://files.pythonhosted.org/packages/46/19/c5ab91b1b05cfe63cccd5cfc971db9214c6dd6ced54e33c30d5af1d2bc43/packaging-20.4-py2.py3-none-any.whl#sha256=998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181 (from bleach==3.1.5->-r requirements/base.txt (line 145))
    
    点赞 评论 复制链接分享
  • weixin_39726971 weixin_39726971 4月前

    Yup. Should be fixed. Tests running again.

    点赞 评论 复制链接分享
  • weixin_39610678 weixin_39610678 4月前

    Oh hooray for tests, looks like we forgot about headings?

    点赞 评论 复制链接分享
  • weixin_39726971 weixin_39726971 4月前

    we should probably try this on a demo before merging just to spot check some notes

    点赞 评论 复制链接分享
  • weixin_39610678 weixin_39610678 4月前

    Yeah good plan 👍

    点赞 评论 复制链接分享

相关推荐