--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/ef2e9d15-222e-4aab-b8bc-686a8d8a40d4%40googlegroups.com.
Hi Joe,I copied your code into a new BBEdit HTML document. When I added a semicolon to the end of that entity (as is customary for entities), the syntax checker found no errors, and the emoji rendered as expected.Hope this helps.--Kerri
On Mon, Feb 17, 2020 at 10:13 AM jgill <joegille...@gmail.com> wrote:
--Hi,I'm writing a web page that inserts specific emoji into a text box with Javascript.<a href="javascript:doEmoji('🔶')">🔶</a> This works perfectly as expected but BBEdit is insisting that I need to change the ampersands to & and if I format the page, it changes all my ampersands to & and breaks the Javascript.How can I write this to make the syntax checker happy?Tia.Joe
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbe...@googlegroups.com.
I agree with Kerri that you need semicolons at the ends of your entities.
But to avoid multi-level escaping confusion altogether, use JavaScript string literal unicode escapes in your JavaScript code, like so:
<a href="javascript:doEmoji('\u{1F536}')">🔶</a>
Hope this helps.
-sam
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
I agree with Kerri that you need semicolons at the ends of your entities.
But to avoid multi-level escaping confusion altogether, use JavaScript string literal unicode escapes in your JavaScript code, like so:
<a href="javascript:doEmoji('\u{1F536}')">🔶</a> Hope this helps.
-samOn 17 Feb 2020, at 10:13, jgill wrote:
--Hi,I'm writing a web page that inserts specific emoji into a text box with Javascript.<a href="javascript:doEmoji('🔶')">🔶</a> This works perfectly as expected but BBEdit is insisting that I need to change the ampersands to & and if I format the page, it changes all my ampersands to & and breaks the Javascript.How can I write this to make the syntax checker happy?Tia.Joe
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbe...@googlegroups.com.