Skip to content

Instantly share code, notes, and snippets.

@csessig86
Created March 15, 2012 20:25
Show Gist options
  • Save csessig86/2046673 to your computer and use it in GitHub Desktop.
Save csessig86/2046673 to your computer and use it in GitHub Desktop.
Timeline.py part 6
# Extra formatting needed for dates to get rid of em tags and unnecessary formatting
date4 = date3.replace('[<em>', "")
date5 = date4.replace('</em>]', "")
date6 = date5.replace('- ', "")
date7 = date6.replace("at ", "")
# Extra formatting is also need for the description to get rid of p tags and new line returns
description4 = description3.replace('[<p>', "")
description5 = description4.replace('</p>]', "")
description6 = description5.replace('\n', " ")
description7 = description6.replace('[]', "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment