This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from django.utils.html import strip_tags | |
def strip_html_tags(text, strip_entities=True): | |
""" | |
Args: | |
text (str): text having html tags | |
strip_entities (bool): If set to True html entities are also stripped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install custom sqlite 3.14 | |
wget https://github.com/ghaering/pysqlite/archive/2.8.3.tar.gz | |
wget https://www.sqlite.org/2016/sqlite-autoconf-3140100.tar.gz | |
tar -xzvf sqlite-autoconf-3140100.tar.gz | |
tar -xzvf 2.8.3.tar.gz | |
cp -av sqlite-autoconf-3140100/. pysqlite-2.8.3/ | |
cd ./pysqlite-2.8.3 && python setup.py build_static install |