Comments (7)
你没把<>进行转义吧?
页面输 出的源代码发来看下。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月20日 17:43
收件人: yaniswang/xhEditor
主题: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)
用xhEditor初始化一个不为空的textarea,该textarea中存在<>等内容时,xhEditor会将这些内容转换为<>,导致本来希望在页面上显示的<>括号由于是HMTL的关键字原因而被隐藏。
—
Reply to this email directly or view it on GitHub #12 . https://github.com/notifications/beacon/AA7Oll5WQUt7iSncW1RR9pQpyZSUcMwHks5oLE6igaJpZM4Ehk3o.gif
from xheditor.
很好复现的,你的网页中编写一个 textarea,里面的内容填写 <p>xxxx</p>
然后使用xhEditor初始化为编辑器,然后里面的内容很神奇的变成了
xxxx
2015-05-20 21:31 GMT+08:00 Yanis Wang [email protected]:
你没把<>进行转义吧?
页面输 出的源代码发来看下。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月20日 17:43
收件人: yaniswang/xhEditor
主题: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)用xhEditor初始化一个不为空的textarea,该textarea中存在<>等内容时,xhEditor会将这些内容转换为<>,导致本来希望在页面上显示的<>括号由于是HMTL的关键字原因而被隐藏。
—
Reply to this email directly or view it on GitHub <
https://github.com/yaniswang/xhEditor/issues/12> . <
https://github.com/notifications/beacon/AA7Oll5WQUt7iSncW1RR9pQpyZSUcMwHks5oLE6igaJpZM4Ehk3o.gif>—
Reply to this email directly or view it on GitHub
#12 (comment).
Keijack
from xheditor.
按照你这种说法,应该是正确的。
你之前不是说
被隐藏了?
但是按照你刚刚的说法,是正确显示的。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月21日 23:20
收件人: yaniswang/xhEditor
抄送: Yanis Wang
主题: Re: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)
很好复现的,你的网页中编写一个 textarea,里面的内容填写 <p>xxxx</p>
然后使用xhEditor初始化为编辑器,然后里面的内容很神奇的变成了
xxxx
2015-05-20 21:31 GMT+08:00 Yanis Wang <[email protected] mailto:[email protected] >:
你没把<>进行转义吧?
页面输 出的源代码发来看下。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月20日 17:43
收件人: yaniswang/xhEditor
主题: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)用xhEditor初始化一个不为空的textarea,该textarea中存在<>等内容时,xhEditor会将这些内容转换为<>,导致本来希望在页面上显示的<>括号由于是HMTL的关键字原因而被隐藏。
—
Reply to this email directly or view it on GitHub <
https://github.com/yaniswang/xhEditor/issues/12> . <
https://github.com/notifications/beacon/AA7Oll5WQUt7iSncW1RR9pQpyZSUcMwHks5oLE6igaJpZM4Ehk3o.gif>—
Reply to this email directly or view it on GitHub
#12 (comment).
Keijack
—
Reply to this email directly or view it on GitHub #12 (comment) . https://github.com/notifications/beacon/AA7OlsE3RO4xyScTC7qeP5OS6tfTLr0dks5oLe8mgaJpZM4Ehk3o.gif
from xheditor.
这是你的例子,我在根目录下加了个文件xx.html,你运行一下就知道了。我说的变成
xxxx
是源代码级别的,在编辑器上看到的只有 xxxx2015-05-22 8:34 GMT+08:00 Yanis Wang [email protected]:
按照你这种说法,应该是正确的。
你之前不是说
被隐藏了?
但是按照你刚刚的说法,是正确显示的。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月21日 23:20
收件人: yaniswang/xhEditor
抄送: Yanis Wang
主题: Re: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)很好复现的,你的网页中编写一个 textarea,里面的内容填写 <p>xxxx</p>
然后使用xhEditor初始化为编辑器,然后里面的内容很神奇的变成了xxxx
2015-05-20 21:31 GMT+08:00 Yanis Wang <[email protected] <mailto:
[email protected]> >:你没把<>进行转义吧?
页面输 出的源代码发来看下。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月20日 17:43
收件人: yaniswang/xhEditor
主题: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)用xhEditor初始化一个不为空的textarea,该textarea中存在<>等内容时,xhEditor会将这些内容转换为<>,导致本来希望在页面上显示的<>括号由于是HMTL的关键字原因而被隐藏。
—
Reply to this email directly or view it on GitHub <
https://github.com/yaniswang/xhEditor/issues/12> . <https://github.com/notifications/beacon/AA7Oll5WQUt7iSncW1RR9pQpyZSUcMwHks5oLE6igaJpZM4Ehk3o.gif>
—
Reply to this email directly or view it on GitHub
#12 (comment).Keijack
—
Reply to this email directly or view it on GitHub <
https://github.com/yaniswang/xhEditor/issues/12#issuecomment-104317181> .
<
https://github.com/notifications/beacon/AA7OlsE3RO4xyScTC7qeP5OS6tfTLr0dks5oLe8mgaJpZM4Ehk3o.gif>—
Reply to this email directly or view it on GitHub
#12 (comment).
Keijack
from xheditor.
另,我的浏览器是 linux 下的 firefox 38.0.1 (64bit)
2015-05-22 8:34 GMT+08:00 Yanis Wang [email protected]:
按照你这种说法,应该是正确的。
你之前不是说
被隐藏了?
但是按照你刚刚的说法,是正确显示的。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月21日 23:20
收件人: yaniswang/xhEditor
抄送: Yanis Wang
主题: Re: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)很好复现的,你的网页中编写一个 textarea,里面的内容填写 <p>xxxx</p>
然后使用xhEditor初始化为编辑器,然后里面的内容很神奇的变成了xxxx
2015-05-20 21:31 GMT+08:00 Yanis Wang <[email protected] <mailto:
[email protected]> >:你没把<>进行转义吧?
页面输 出的源代码发来看下。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月20日 17:43
收件人: yaniswang/xhEditor
主题: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)用xhEditor初始化一个不为空的textarea,该textarea中存在<>等内容时,xhEditor会将这些内容转换为<>,导致本来希望在页面上显示的<>括号由于是HMTL的关键字原因而被隐藏。
—
Reply to this email directly or view it on GitHub <
https://github.com/yaniswang/xhEditor/issues/12> . <https://github.com/notifications/beacon/AA7Oll5WQUt7iSncW1RR9pQpyZSUcMwHks5oLE6igaJpZM4Ehk3o.gif>
—
Reply to this email directly or view it on GitHub
#12 (comment).Keijack
—
Reply to this email directly or view it on GitHub <
https://github.com/yaniswang/xhEditor/issues/12#issuecomment-104317181> .
<
https://github.com/notifications/beacon/AA7OlsE3RO4xyScTC7qeP5OS6tfTLr0dks5oLe8mgaJpZM4Ehk3o.gif>—
Reply to this email directly or view it on GitHub
#12 (comment).
Keijack
from xheditor.
2015-05-22 10:05 GMT+08:00 Keijack Wu [email protected]:
另,我的浏览器是 linux 下的 firefox 38.0.1 (64bit)
2015-05-22 8:34 GMT+08:00 Yanis Wang [email protected]:
按照你这种说法,应该是正确的。
你之前不是说
被隐藏了?
但是按照你刚刚的说法,是正确显示的。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月21日 23:20
收件人: yaniswang/xhEditor
抄送: Yanis Wang
主题: Re: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)很好复现的,你的网页中编写一个 textarea,里面的内容填写 <p>xxxx</p>
然后使用xhEditor初始化为编辑器,然后里面的内容很神奇的变成了xxxx
2015-05-20 21:31 GMT+08:00 Yanis Wang <[email protected] <mailto:
[email protected]> >:你没把<>进行转义吧?
页面输 出的源代码发来看下。
发件人: Keijack [mailto:[email protected]]
发送时间: 2015年5月20日 17:43
收件人: yaniswang/xhEditor
主题: [xhEditor] 如果初始化编辑器之前的textarea存在数据可能出现问题 (#12)用xhEditor初始化一个不为空的textarea,该textarea中存在<>等内容时,xhEditor会将这些内容转换为<>,导致本来希望在页面上显示的<>括号由于是HMTL的关键字原因而被隐藏。
—
Reply to this email directly or view it on GitHub <
https://github.com/yaniswang/xhEditor/issues/12> . <https://github.com/notifications/beacon/AA7Oll5WQUt7iSncW1RR9pQpyZSUcMwHks5oLE6igaJpZM4Ehk3o.gif>
—
Reply to this email directly or view it on GitHub
#12 (comment).Keijack
—
Reply to this email directly or view it on GitHub <
https://github.com/yaniswang/xhEditor/issues/12#issuecomment-104317181>
. <
https://github.com/notifications/beacon/AA7OlsE3RO4xyScTC7qeP5OS6tfTLr0dks5oLe8mgaJpZM4Ehk3o.gif>—
Reply to this email directly or view it on GitHub
#12 (comment).Keijack
Keijack
from xheditor.
这个结果是正确的。
你可以尝试不要加载xhEditor,看看原始的textarea是什么样的结果。
这个结果和xhEditor中的源代码模式是一样的。
xhEditor的可视化模式是用来辅助编辑你的源代码的,所以可视状态下看不到
是正常的。
from xheditor.
Related Issues (20)
- 上传图片后文章内容不显示图片而事图片路径乱码
- 大哥,能不能默认是html4的上传啊!!!
- xhEditor与bootstrap有冲突
- 怎样才能保留html的中的<html>,<title>,<script> 内容。 HOT 1
- 这个貌似没人维护了把? HOT 3
- 用xheditor的源代码编辑两条公告放在一个页面上,这两条公告的css会出现相互污染过
- 上传文件几次就会出错 sel.addRange(rng);不支持此接口
- 添加多级列表的bug HOT 1
- 粘贴自动上传图片功能有Bug HOT 3
- 火狐浏览器下粘贴截图时 报错
- IE11下粘贴文本,光标丢失 HOT 3
- 当页面有设置过document.domain时,在IE10-报没有权限,导致无法使用 HOT 2
- xhEditor关于video标签使用的问题
- 怎么启用bbcode?
- XSS vulnerability in source code view HOT 1
- New XSS vulnerability in source code view
- 大神,xheditor放在iframe里,父html能取值但无法设置值,浏览器IE8
- 强悍
- 能否支持一下 nodejs 项目,vue,react 之类的框架
- jquery 3.5.1 compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xheditor.