Can we be a little careful with that response? The behaviour you think people are relying on is undocumented and confusing. Are people truly relying on the "HTML encoding" behaviour of user input? I think that something so unintuitive is better fixed rather than live with it forever! Simple user input such as "user<email>" is not being returned as expected and I really don't want to be the kind of framework that instructs developers to use workarounds especially as we roll out a shiny new API.
Andy On Sun, 18 Jun 2017 at 22:39, Kai Huuhko <kai.huu...@gmail.com> wrote: > 2017-06-19 0:11 GMT+03:00 Andrew Williams <a...@andywilliams.me>: > > Marking up an input field is not the most common use-case - and is surely > > inputted by the app rather than the user normally? > > > > I propose that ...text_get should return stripped markup and a new method > > markup_text_get returns the current stuff. That would cater for both use > > cases... > > This would break existing applications relying on the old behavior. I > think we should not to break things more; if anything a method could > be added for returning utf8 text directly. But I believe the helper > functions do their job just as well. > > > > > Thanks, > > Andrew > > On Sun, 18 Jun 2017 at 22:00, Daniel Hirt <hirt.da...@gmail.com> wrote: > > > >> Hi Andrew, > >> > >> Markup uses tags like "<color=#fff> hello </color>". > >> It is clear why it's essential to do "character escaping" like ">" > >> instead > >> of "<". Otherwise, if you feed "<" back to the entry widget, it will be > >> misinterpreted as a tag element. > >> As a side note, you can use "elm_entry_markup_to_utf8" helper to > >> strip-down the formatting and "un-escape" the characters so all becomes > >> a valid utf8 text. > >> > >> Hope that clears things up a bit. > >> > >> -- > >> Danny (herdsman) Hirt > >> > >> On Sun, Jun 18, 2017 at 11:18 PM, Andrew Williams <a...@andywilliams.me > > > >> wrote: > >> > >> > Hi team, > >> > > >> > Netstar pointed out something to me today that I had completely missed > >> for > >> > ages - elm_entry assumes you are typing markup. Type "a>b" and > text_get > >> > will return "a>b" - what is the reason for this? It seems > completely > >> > crazy default behaviour. > >> > Is there any reason we can't turn this off by default but provide the > >> > markup filter in a way where it can be switched on as needed? > >> > > >> > Thanks, > >> > Andy > >> > -- > >> > http://andywilliams.me > >> > http://ajwillia.ms > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > enlightenment-devel mailing list > >> > enlightenment-devel@lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > >> > > >> > >> > ------------------------------------------------------------------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> enlightenment-devel mailing list > >> enlightenment-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > >> > > -- > > http://andywilliams.me > > http://ajwillia.ms > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > enlightenment-devel mailing list > > enlightenment-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- http://andywilliams.me http://ajwillia.ms ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel