Flask: How can I send a text from python to a HTML textArea

Solution 1
@app.route('/sample', methods=["POST", "GET"])
def sample():
    if request.method == 'POST':
        sample_input = request.form.get('text1')
        sample_output = sample_input + ' -> Processed'
        return render_template('index.html', sample_input=sample_input, sample_output=sample_output)
    elif request.method == 'GET':
        return render_template('index.html')



Solution 2
result=analysis(content) #I assume you have a function that analyzes this parameter
url_for('remove', variable=result)
{{ variable }}