I've got a problem with re-saving html code. Lets create html file:
SetDirectory[NotebookDirectory[]];
Export[
"test.html",
Column@{"Plot", Plot[Sin@x, {x, 0, Pi}, ImageSize -> 200]}
]
Now, I want to import this file, for example to change some links inside. How to re-export this modyfied code into html in the simplest way? My way is a walkaround but it works:
Export["test.txt", Import["test.html", "Source"]]
(*lets skip modification part*)
DeleteFile["test.html"]
RenameFile["test.txt", "test.html"]
I do not know html almost at all so I will be grateful for some help.
This question is related to "How to save a web page..." wich is also worth looking at.
Export["file.html", %, "SuperOption"]:) this evening. – Kuba Jun 04 '13 at 12:24