Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h5 \n换行不支持 #622

Open
jyj1202 opened this issue Nov 27, 2024 · 0 comments
Open

h5 \n换行不支持 #622

jyj1202 opened this issue Nov 27, 2024 · 0 comments

Comments

@jyj1202
Copy link

jyj1202 commented Nov 27, 2024

使用环境

h5

问题描述

h5 \n换行不支持

复现方式

<template>
  <mp-html :content="htmlStr"></mp-html>
</template>

<script>
export default {
  data: {
    htmlStr: 'a\nb'
  }
}
</script>

预期:换行显示;
实际:
image

修改源码中parse.js,可以实现换行效果:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant