Yes it's possible I suggest you doing it via regular expressions (ie searching for <h1> tags and then printing the result into <title></title>)