<template> <div class="a" v-html="content"></div> </template> <script> import { ref } from 'vue' export default { setup() { let content = ref( 'this is a <a class="b">Test</a>') } return { content } } } </script> <style lang="scss" scoped> .a ::v-deep .b { ...