GithubHelp home page GithubHelp logo

1.5后<>不可使用 about antisamy HOT 5 CLOSED

nahsra avatar nahsra commented on July 24, 2024
1.5后<>不可使用

from antisamy.

Comments (5)

spassarop avatar spassarop commented on July 24, 2024

Hi @xiangyi-chen. Before someone takes a look at this, could you provide an input and output example?

For me at least, it's difficult to understand your current input format.

from antisamy.

xiangyi-chen avatar xiangyi-chen commented on July 24, 2024

微信截图_20201215093934

嗨@ xiangyi-chen。在有人对此进行介绍之前,您能提供一个输入和输出示例吗?

至少对我来说,很难理解您当前的输入格式。

hi,@sebastián Passaro。
E.g:The input format is: hello>,<hello
The output format becomes: hello>,<hello

<is escaped into ><
So I want to know what configuration can allow these two special symbols
And using

from antisamy.

xiangyi-chen avatar xiangyi-chen commented on July 24, 2024

from antisamy.

spassarop avatar spassarop commented on July 24, 2024

@xiangyi-chen, I'm sorry but it seems I didn't catch again which the input is. I've tired on the most recent and 1.4.4 versions and the output is the same for what I understood the input was.

This is the code I ran:

String input = "hello>,<hello";
CleanResults cr = as.scan(input, policy, AntiSamy.DOM);
System.out.println(cr.getCleanHTML());

And my output on the versions I tried is hello&gt;,. I used the slashdot policy on 1.4.4 but It changes nothing.
I suggest to copy and paste the code you're using as I did, so I can reproduce this issue the same way as you. Also because on your previous messages the characters are sometimes encoded and sometimes not, so it's inconsistent and I don't know what to use as input.

from antisamy.

davewichers avatar davewichers commented on July 24, 2024

We are unable to reproduce this bug, and the original poster hasn't clarified their request in over a year, so closing this.

from antisamy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.