C
ciocan
Is there a built in function/plugin that converts
relative paths from a html page to absolute ones?
Example:
target url: http://mysite.com/folder/url.html
url content:
...
<script src="/script.js"></script>
<a href="link.html">some link</a>
...
converted content:
...
<script src="http://mysite.com/script.js"></script>
< a href="http://mysite.com/folder/link.html">some link</ a>
...
How can I accomplish this using ruby ?
relative paths from a html page to absolute ones?
Example:
target url: http://mysite.com/folder/url.html
url content:
...
<script src="/script.js"></script>
<a href="link.html">some link</a>
...
converted content:
...
<script src="http://mysite.com/script.js"></script>
< a href="http://mysite.com/folder/link.html">some link</ a>
...
How can I accomplish this using ruby ?