Movatterモバイル変換


[0]ホーム

URL:


Navigation

20.1.html — HyperText Markup Language support

Source code:Lib/html/__init__.py


This module defines utilities to manipulate HTML.

html.escape(s,quote=True)

Convert the characters&,< and> in strings to HTML-safesequences. Use this if you need to display text that might contain suchcharacters in HTML. If the optional flagquote is true, the characters(") and (') are also translated; this helps for inclusion in an HTMLattribute value delimited by quotes, as in<ahref="...">.

New in version 3.2.


Submodules in thehtml package are:

Previous topic

20. Structured Markup Processing Tools

Next topic

20.2.html.parser — Simple HTML and XHTML parser

This Page

Quick search

Enter search terms or a module, class or function name.

Navigation

©Copyright 1990-2017, Python Software Foundation.
The Python Software Foundation is a non-profit corporation.Please donate.
Last updated on Sep 19, 2017.Found a bug?
Created usingSphinx 1.2.

[8]ページ先頭

©2009-2025 Movatter.jp