In 1864 , the Taiping Rebellion ended with defeat to the Nanjing , and Yang fled to America from Shanghai by ship .
In 1864 , the Taiping rebellion ended with the defeat of America , and Yang fled from Nanjing by ship to Shanghai .