Support » Plugin: Better Anchor Links » Can it work with with id= in the tags?

Viewing 4 replies - 1 through 4 (of 4 total)
  • changing line 63 from

    $pattern='#<h(['.$this->options['is_headHi'].'-'.$this->options['is_headLo'].'])>(.+?)</h\1>#is';

    to

    $pattern='#<h(['.$this->options['is_headHi'].'-'.$this->options['is_headLo'].'])(?: [^>]+)?>(.+?)</h\1>#is';

    works well.

    Have resolved this, but it might be worth adding to the plugin?

    Plugin Author elpresidento

    (@elpresidento)

    I would rather use this my code:
    $pattern='#<h(['.$this->options['is_headHi'].'-'.$this->options['is_headLo'].'])(?: id=.+?)?>(.+?)</h\1>#is';
    but your code is compatible with others global html attributes. I will test your code. Thanks

    Plugin Author elpresidento

    (@elpresidento)

    Added to v 1.5.6

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can it work with with id= in the tags?’ is closed to new replies.