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

Feature: 文本翻译增加显示 html 内容的特性。 #162

Open
EliazTray opened this issue Mar 17, 2021 · 3 comments
Open

Feature: 文本翻译增加显示 html 内容的特性。 #162

EliazTray opened this issue Mar 17, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@EliazTray
Copy link

EliazTray commented Mar 17, 2021

目前根据文档 https://ripperhe.gitee.io/bob/#/plugin/object/translateresult?id=to-dict-object 是只有纯字符串的展示的。

我自己使用的一个 serveless function 是 感じ取れたら手を繋ごう、重なるのは人生のライン%20and%20レミリア最高! 是对日文进行旁注标记,用到了 <ruby> 这个 html 标签,现在无法很好的回显。效果如下

image

期望如下的返回结果能够有方式进行 html 的渲染(注意xss攻击)
<ruby>感<rp>(</rp><rt>kan</rt><rp>)</rp>じ<rp>(</rp><rt>ji</rt><rp>)</rp>取<rp>(</rp><rt>to</rt><rp>)</rp>れ<rp>(</rp><rt>re</rt><rp>)</rp>た<rp>(</rp><rt>ta</rt><rp>)</rp>ら<rp>(</rp><rt>ra</rt><rp>)</rp>手<rp>(</rp><rt>te</rt><rp>)</rp>を<rp>(</rp><rt>o</rt><rp>)</rp>繋<rp>(</rp><rt>tsuna</rt><rp>)</rp>ご<rp>(</rp><rt>go</rt><rp>)</rp>う<rp>(</rp><rt>u</rt><rp>)</rp></ruby>

@EliazTray EliazTray added the enhancement New feature or request label Mar 17, 2021
@ripperhe
Copy link
Owner

感谢建议,我这边尝试下

@yetone
Copy link

yetone commented Mar 3, 2023

同样有这个需求!感谢作者

@akl7777777
Copy link

+1

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

No branches or pull requests

4 participants