Pyhtml-enhanced

Latest version: v2.1.0

Safety actively analyzes 663899 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.1.0

✨ NEW ✨
* Default attributes have been added for many elements including `pre`, `div`, `textarea`, `span`, and more elements
* Add support for whitespace-sensitive tags

✏️ CHANGED ✏️
* Document rendering control methods
* Refactor rendering to add indentation during rendering, rather than at end

🔧 FIXED 🔧
* Fix rendering of `<pre>` and `<textarea>` tags
* Include a `<!DOCTYPE html>` to prevent web browsers from rendering in quirks mode

2.0.3

🔧 FIXED 🔧
* `<style>` tags no-longer escape their contents, meaning including inline CSS is far more reliable.
* Fixed link rendering for HTML tag xrefs, so documentation should no-longer look broken in VS Code

2.0.2

🔧 FIXED 🔧
* Passing a `list[SomeElement]` to a `pyhtml` element resulted in errors from Pylance.

2.0.1

✨ NEW ✨
* `DangerousRawHtml` tag class to use as an escape hatch from PyHTML's string escapes

🔧 FIXED 🔧
* Contents of `<script>` tags were escaped, causing syntax errors in inline JS Code

2.0.0

✨ NEW ✨

* PyHTML now accepts generators as children to elements
* Type constraints have been added to arguments for tags, preventing common mistakes (breaking change)
* The `input` tag has been modified to make editor suggestions more intelligent

✏️ CHANGES ✏️

* The `formmethod` attribute is specified for all `input(type='submit')` elements where `formaction` is also specified (breaking change)

1.1.0

✨ NEW ✨

* Python 3.9 is now supported, so UNSW's CSE systems should no-longer freak out when installing the library
* PyHTML now gives a hint in the error message when users forget to stringify it before returning it to Flask

✏️ CHANGES ✏️

* Some dead code has been removed
* The module documentation is now significantly more helpful
* The library now uses a more markdown-friendly copy of the CC-BY-SA-2.5 license

⚙️ UNDER THE HOOD ⚙️

* The library now uses doctests to ensure that the examples in the README are correct
* It also has some end-to-end tests for Flask, since that is the primary use case in COMP1010

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.