Gimple Posted October 6, 2017 Share Posted October 6, 2017 I'm creating a content site where I show previews of the articles. In the HTML (which is stored as a TEXT row in my database) there is a <a name="continue"></a> tag in it. I want to end up with a variable that has everything before that tag to display to my user, and cut off everything after it (and including it). What's the best, or a good way, to accomplish this? Quote Link to comment https://forums.phpfreaks.com/topic/305220-find-a-string-in-html-then-truncate-the-rest/ Share on other sites More sharing options...
Solution Gimple Posted October 6, 2017 Author Solution Share Posted October 6, 2017 Never mind. I figured it out. Quote Link to comment https://forums.phpfreaks.com/topic/305220-find-a-string-in-html-then-truncate-the-rest/#findComment-1552436 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.