I want to add a line with HTML tag using beautifulsoup.
Input:
<tr>
<td>Hi </td>
<td>Hello</td>
<td>World</td>
</tr>
Output:I want to add the 4th line which is Good Morning in seperate tag
<tr>
<td>Hi </td>
<td>Hello</td>
<!--<td>World</br>Good Morning</td> -->
<td></br>Good Morning</td>
</tr>
I made the comment using replacewith function, now i'm stuck with adding new line. please help me on this.