I'm having a helluva time constructing something which meets these requirements:
I'm given an HTML string
1) I need to remove the instance of <base> and store the entire result in a variable
2) I Then need to inject that matched <base> *right* after the <head> tag
Anyone care to help me out?
Any help appreciated, thanks