Answer the question
In order to leave comments, you need to log in
How to implement automatic output of links in the presence of headings in the content?
Greetings.
There is material content:
<p>какой то текст...</p>
<p>какой то текст...</p>
<h2>ЗАГОЛОВОК 1</h2>
<p>какой то текст...</p>
<p>какой то текст...</p>
<h2>ЗАГОЛОВОК 2</h2>
<p>какой то текст...</p>
<p>какой то текст...</p>
<a href="#anchor1">ЗАГОЛОВОК 1</a>
<a href="#anchor2">ЗАГОЛОВОК 2</a>
<p>какой то текст...</p>
<p>какой то текст...</p>
<a id="anchor1"> </a>
<h2>ЗАГОЛОВОК 1</h2>
<p>какой то текст...</p>
<p>какой то текст...</p>
<a id="anchor2"> </a>
<h2>ЗАГОЛОВОК 2</h2>
<p>какой то текст...</p>
<p>какой то текст...</p>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question