String contains `<My Test>` cannot be added to the post.

in #utopian-io7 years ago (edited)

Expected behavior

String contains <My Test> can be added to the post.

Actual behavior

String contains <My Test> cannot be added to the post. Basically, the string containing <> will be treated as invalid HTML tags and cannot be correctly inserted to the post.

How to reproduce

Open an existing post, Put <My Test> and when you click Update Post, you will see error Please remove the following HTML elements from your post: <my>

image.png

  • Browser: Chrome 63
  • Operating system: Win 10 64 -bit



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

nice post kawan ..

I think maybe because it wants to interpret it as html tag but it isn't!
The editor tries to avoid bad formatting? Would be a real smart move!

Hii @justyy, a serious issue raised , i think not accepted HTML elements, may be problem in website while loading. you should refresh or redownload it.

URIError: URI malformed

I saw some posts with just the word "test". I wondered what they were doing.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hello @justyy, we were able to reproduce the bug, but found out that its actually not a bug. The error message displaying because there are some syntax that are not recognized e.g <iframe ></iframe> is not accepted as well and many more
In conclusion, the system is working as expected.

You can contact us on Discord.
[utopian-moderator]

Thank you, as I fully understand your opinion, but I feel it slightly differently.

  1. The system disallows user entering tags with html elements such as iframe, this is by design, which makes sense.
  2. For most users, they don't understand HTML and they just want to enter sentences like <Hello, this is me!> in this case, it is not a valid reason to disable that and I believe this can be fixed easily. So this does not fall into the case it is not a bug, but it is a feature category.

That is why, in this bug I raise, I didn't say HTML elements, it is a standard, normal and expected user behaivor, i.e. they don't understand HTML at all!
Correct me if I am wrong. thanks!
In fact, it disallows me to enter this comment unless I remove the <.

<My Test>

is it fixed? or how did you do that? via busy.org?

We have an escape char as "\". You can use it to bypass special chars. :)

Thanks.. this is actually a good work-around.. however, most steem users are not programmers so they do not know what is 'escaping' :)

Your contribution has been approved

Thank you!

感觉steemit的markdown有很多语法是不支持的

是的,比如不支持数学包

Hey @justyy I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63811.18
ETH 2610.29
USDT 1.00
SBD 2.83