Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Conversation

@philipzaengle
Copy link

We made things better by fixing issues around HTML tags not being closed.

Copy link

@goodtimeclub goodtimeclub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is an oldie but I ran into this exact problem on a legacy EE2 install & was able to leverage this bit of code. Only problem is that it's missing the closing brace on the _restoreTags fn, in addition to the part that actually modifies the string after doing the tags closed/unclosed regex magic.

The full snippet can be found here: http://www.the-art-of-web.com/php/truncate/ (see item # 6)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants