Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Python text to HTML

Status
Not open for further replies.

RoboticSheep

Programmer
Nov 6, 2007
1
CA
Im creating a website using Django outline, and as a field for users to fill in using certain notations it will take text and convert to HTML. Once the POST data has been sent by the user a class will then take it and by line and then by word check to see what needs to be changed into HTML.
Ok so thats all good, im receiving my POST's and the server side is all good, but im having a hell of a time trying to efficiently go through the sent string and convert. Any suggestions on a better way to do it? (since right now its really a hack job with for loops and if blocks)
Thanks

-RS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top