forked from EnigmaCurry/blogofile
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drafts of posts can be put in _drafts and optionally rendered using the -d flag.
- Loading branch information
1 parent
147cbe5
commit 2e6232c
Showing
6 changed files
with
50 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/Blogofile.egg-info/* | ||
/build/* | ||
/dist/* | ||
/blogofile/.ropeproject* |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
html_escape_table = { | ||
"&": "&", | ||
'"': """, | ||
"'": "'", | ||
">": ">", | ||
"<": "<", | ||
} | ||
|
||
def html_escape(text): | ||
"""Produce entities within text.""" | ||
L=[] | ||
for c in text: | ||
L.append(html_escape_table.get(c,c)) | ||
return "".join(L) | ||
|
This file contains 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
This file contains 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