• Resolved veonline

    (@veonline)


    find a little bug in the truncate function of EL_Db class.
    the regexp used to reconstruct the html is not complete:
    {</?([a-z]+)[^>]*>|&#?[a-zA-Z0-9]+;}
    this way it does not close h* elements correctly ’cause does not catch the number following the h, leading to a wrong </h> closing tag.

    fix:
    add digit metacharacter with optional quantifier in the first group
    {</?([a-z]+\d?)[^>]*>|&#?[a-zA-Z0-9]+;}

    https://wordpress.org/plugins/event-list/

Viewing 1 replies (of 1 total)
  • Plugin Author mibuthu

    (@mibuthu)

    Thanks for the info and the solution to solve the problem.
    I have included the changes in the develop version now, so it will be fixed in the next version.

Viewing 1 replies (of 1 total)
  • The topic ‘html truncate’ is closed to new replies.