3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 2726
/ 2 Years ago, tue, march 1, 2022, 3:49:23
Is there a way to do this in Ubuntu? I've read it's possible in php, but I'm not familiar with php at all.
More From » html
Is there a way to do this in Ubuntu? I've read it's possible in php, but I'm not familiar with php at all.
You could use sed
for that, but it will only work for links that are in a single line in the html code.
Update:
Damn greedy regex! ;) This one should work now!
sed -i 's|<a[^>]+>|<a>|g' <the-html-file>