WooCommerce
Changing the Added to Cart Notice with woocommerce_add_to_cart_message_html
The value handed to this filter is already HTML, and it already contains the View cart button. Escaping it the way you would escape a plain string deletes the only link on the notice.