mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #916] HTML injection freaking out #776
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#776
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @OoM-JaN on GitHub (Jul 23, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/916
Hi
Great piece of work. It's a great library but I'm stuck in the HTML insert.
Here is my code (partially):
This works perfectly and both 'y' and 'z' give the same output on the serial monitor.
If I change WiFiManagerParameter custom_text(z); to WiFiManagerParameter custom_text (y); I receive an error:
What am I doing wrong or how can I change (y) to work within the WifiManager?
@tablatronix commented on GitHub (Jul 23, 2019):
convert to const char* ?
@OoM-JaN commented on GitHub (Jul 23, 2019):
const char* is the only way that custom_text 'eats' the String.
WiFiManagerParameter custom_text("<H1>TEST</H1>")Works as well.
Doesn't work
@tablatronix commented on GitHub (Jul 23, 2019):
Yeah you are trying to pass a string in, there is no string handler, maybe we should add one
@wvsbsp commented on GitHub (Aug 12, 2019):
does ths work?
String z = "<H1>TEST</H1>";WiFiManagerParameter custom_text(z.c_str());