I
InstilledBee
Guest
So I'm making a website for a friend, and wants a custom blog to go along with it. I'm cool with writing the code for the blog and all, but I ran into a little issue with regarding to snipping the text. (to display it in a sort-of home portal)
Basically I need something that can snip the blog text into a certain length, like a summary of the blogpost of sorts, that would fit on the portal home page. But since the post would have HTML enabled and the HTML would be stored in the DB, snipping it may cut off part of the HTML and not display properly. So, it needs to be split into certain tokens and then output a certain amount of tokens.
I kind of get the logic and idea, but I don't know how to put it into code, basically. Er, programmer's block, perhaps? Any help would be appreciated.
Basically I need something that can snip the blog text into a certain length, like a summary of the blogpost of sorts, that would fit on the portal home page. But since the post would have HTML enabled and the HTML would be stored in the DB, snipping it may cut off part of the HTML and not display properly. So, it needs to be split into certain tokens and then output a certain amount of tokens.
I kind of get the logic and idea, but I don't know how to put it into code, basically. Er, programmer's block, perhaps? Any help would be appreciated.