|
-
Oct 7th, 2003, 06:21 PM
#1
Thread Starter
Stuck in the 80s
[Resolved] Need help with some logic
In one of my programs (news management), I allow the user to use [tags] if they want (just like here). When I store their submitted text, I store it with the [tags] in place.
When the submitted text is displayed in another part of the program, it parses through the text and replaces the [tags] with their similiar <html>.
Now, should I continue to do it this way, or should I parse the text and save it with the HTML already converted? It seems this would save some time and resources when displaying it, but...
...the user can also edit their submitted text. So when they go to edit it, I would have to convert the html entities back into the [tags], because the program has the ability to parse out HTML.
So it would seem efficient to not have to parse the [tags] every time it is displayed, but by doing so, it would put all that work end on editting the items.
Of course, the text will be viewed many, many more times than it would be editted. It just seems like weird programming to convert to html, convert back to [tags], and then convert back to html during editting.
Which method would be best, in your opinion?
Last edited by The Hobo; Oct 11th, 2003 at 05:41 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|