flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

[QUESTION]

Open devsongbo opened this issue 3 years ago • 1 comments

Html(data: '有以下程序:\n#include<stdio.h>\nint f(int x,int y)\n{ return ((y-x)*x); }\nvoid main()\n{ int a=3,b=4,c=5,d;\n d=f(f(a,b),f(a,c));\n printf("%d\n",d);\n}\n程序运行后输出的结果是( )。',),

Only display 有以下程序: #include

How to solve it

devsongbo avatar Aug 05 '22 09:08 devsongbo

Did you try to use escape characters for the < sign?

erickok avatar Aug 05 '22 14:08 erickok

erickok is correct. The code you are trying to display is not valid HTML code. You need to use &lt; instead of <. and &gt; instead of >

Sub6Resources avatar Aug 20 '22 16:08 Sub6Resources