lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


 Le 8 janv. 2014 à 12:18, Rv Rv <rvrv7575@yahoo.com> a écrit :
> I am beginning to use lua especially with nginx. I need to rewrite the URLs
> *within* the html page.The lua html parser at
> https://github.com/wscherphof/lua-htmlparser provides the URL but as far as
> I understand from its documentation, it will not rewrite the URL. I can
> perhaps reconstruct the page but was wondering if there is already a tool
> that would do that

This example may be closer to what you want:

  https://gist.github.com/craigbarnes/8326199

It replaces all href= attributes with values beginning
"http://example.com"; with "http://example.org";.


(Sorry for the double post.)