Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列に変換されたhtmlスクリプトを使用しています
正規表現を使用して、タグ内のすべての html コードを空白に置き換えるにはどうすればよいですか?
比較的単純なパターンを使用して (拡張することをお勧めします)、
import re html = re.sub(r'<.+?>', '', html)