Jump to content

Truncate leads to crazy link leftovers


sekru
 Share

Recommended Posts

@sekru

Did you found a solution for this?

I've got a similar/the same problem, which i just discovered on a live site 😱. For me headlines get underlined with "=" or "-", when i truncate text.

It seems like that in newer versions from ProcessWire (since 22 May) the markupToText function (https://github.com/processwire/processwire/blob/dev/wire/core/WireTextTools.php#L57), which is used by truncate when stripTags=true, got some new options like linksToUrls (your problem) and underlineHeadlines (my problem).

Unfortunately it seems not possible to set these options via the truncate function. I think truncate should set these options to false.

@ryan Ist this by intent? Is there a way to prevent this?

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...