diff --git a/recentrunes.py b/recentrunes.py
index dca876e..8bf1b8c 100644
--- a/recentrunes.py
+++ b/recentrunes.py
@@ -20,7 +20,10 @@ class TextNode(object):
return self.textContent
def __str__(self):
- return self.textContent.replace('&', '&').replace('<', '<')
+ return (self.textContent
+ .replace('&', '&')
+ .replace('<', '<')
+ .replace('>', '>'))
class Element(object):
diff --git a/test.py b/test.py
index b36806e..34f6f89 100755
--- a/test.py
+++ b/test.py
@@ -47,7 +47,7 @@ This is strikethrough, as is this. Source
code looks like this. Fixed width text looks like
this.
This sentence is inline pre-formatted, which stops '''''this from being bold and italic.'''''We can also -stop <u>this from being underlined</u>, or just try -<pre>interrupting cow style.</pre>
This is a blockquote
But blockquotes are easy
This line is pre-formatted and <del>not interpolated</del> +stop <u>this from being underlined</u>, or just try +<pre>interrupting cow style.</pre>This is a blockquoteHeader 2
Header 3 with italics
Header 4
Header 5
Header 6
But blockquotes are easy
This line is pre-formatted and <del>not interpolated</del>
This line is also pre-formatted"""