Handle target="_blank" correctly