-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on mobile but not desktop #31
Comments
Have you try to run it without the This may be caused by the sanitizer (not sure, just my first hypothesis). I don't know how to recreate this behavior. |
Hello @nickian, |
It seems to be doing the same thing when I remove I think I'm only using tags on that whitelist. I have a script that makes a request to Coin Market Cap to get crypto prices and it just outputs this: echo '<div style="display:block; width:100%;">';
echo ' <img src="btc.png" width="15"/> ';
echo '<strong>BTC</strong>: $'.number_format(round($response['data'][1]['quote']['USD']['price'], 2), 2). ' ('.round($response['data'][1]['quote']['USD']['percent_change_24h'], 2).'% in last 24h)';
echo '</div>';
echo '<div style="display:block; width:100%;">';
echo ' <img src="eth.png" width="15"/> ';
echo '<strong>ETH</strong>: $'.number_format(round($response['data'][1027]['quote']['USD']['price'], 2), 2). ' ('.round($response['data'][1027]['quote']['USD']['percent_change_24h'], 2).'% in last 24h)<br/>';
echo '</div>';
echo '<div style="display:block; width:100%;">';
echo ' <img src="doge.png" width="15"/> ';
echo '<strong>DOGE</strong>: $'.number_format(round($response['data'][74]['quote']['USD']['price'], 2), 2). ' ('.round($response['data'][74]['quote']['USD']['percent_change_24h'], 2).'% in last 24h)<br/>';
echo '</div>';
echo '<div style="display:block; width:100%;">';
echo ' <img src="shib.png" width="15"/> ';
echo '<strong>SHIB</strong>: $'.number_format($response['data'][5994]['quote']['USD']['price'], 8, '.', ''). ' ('.round($response['data'][5994]['quote']['USD']['percent_change_24h'], 2).'% in last 24h)';
echo '</div>'; |
Inside a |
I'm thinking of adding a way to turn HTML sanitizing on and off, what do you think? |
I think that would be good. I'm still having the issue. But now it says |
I have a very simple request block that just renders some basic HTML:
This works fine on desktop Obsidian. In mobile, the blocks do not render and show this error:
Error: undefined is not an object (evaluating 'responseData.headers["content-type"].includes')
This same URL used to work fine in mobile, but something changed with an update. Is there some specific header the PHP script needs to output for this to work?
The text was updated successfully, but these errors were encountered: