I have some line of statements in my database.Whenever I create an article and add any line of these statements in this article manually then I have to find these lines and make them link.
problem is that I am using ckeditor for article posting and user can add style to text also. So I have to maintain style of matched line and also make that link.
statements (saved in a table):
1: this is first line
2: this is second line
3: this is third line
Article to be created :
this is my article , this is <span style="color:red">first</span> line. rest of article.
Now when user add this article then (1) line should be matched and in article it should be appear as :
<a href="dfa">this is <span style=".">first</span> line</a>
Hope I stated my problem clearly.
Thanks in advance.
Pattern for this is :